wpify / data-warehouse-api-php-sdk
未提供描述(由 Openapi Generator 生成 https://github.com/openapitools/openapi-generator)
dev-master
2023-10-31 12:04 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is auto-updated.
Last update: 2024-08-30 01:49:57 UTC
README
未提供描述(由 Openapi Generator 生成 https://github.com/openapitools/openapi-generator)
安装 & 使用
要求
PHP 7.4 及以上版本。也应与 PHP 8.0 兼容。
Composer
要通过 Composer 安装绑定,请将以下内容添加到 composer.json
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/wpify/krajinapodsnezkou-data-warehouse-api-php-sdk.git"
}
],
"require": {
"wpify/krajinapodsnezkou-data-warehouse-api-php-sdk": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门
请遵循 安装过程,然后运行以下命令
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new DataWarehouseApiClient\Api\EventsApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$dataset_guid = 'dataset_guid_example'; // string | Dataset GUID from warehouse administration
try {
$result = $apiInstance->apiWarehouseV1EventsGet($dataset_guid);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling EventsApi->apiWarehouseV1EventsGet: ', $e->getMessage(), PHP_EOL;
}
API 端点
所有 URI 都是相对于 https://
类 | 方法 | HTTP 请求 | 描述 |
---|---|---|---|
EventsApi | apiWarehouseV1EventsGet | GET /api/warehouse/v1/events | |
NewsApi | apiWarehouseV1NewsGet | GET /api/warehouse/v1/news | |
OpenAPIApi | apiWarehouseV1OpenapiGet | GET /api/warehouse/v1/openapi | OpenAPI JSON |
模型
- AccessibilityLevel
- ApiWarehouseV1EventsGet200ResponseInner
- ApiWarehouseV1EventsGet200ResponseInnerAccessibility
- ApiWarehouseV1EventsGet200ResponseInnerAdmissionsInner
- ApiWarehouseV1EventsGet200ResponseInnerAttachmentsInner
- ApiWarehouseV1EventsGet200ResponseInnerContactsInner
- ApiWarehouseV1EventsGet200ResponseInnerContactsInnerPlacement
- ApiWarehouseV1EventsGet200ResponseInnerContactsInnerPlacementAddress
- ApiWarehouseV1EventsGet200ResponseInnerContactsInnerPlacementCoordinates
- ApiWarehouseV1EventsGet200ResponseInnerPlacementsInner
- ApiWarehouseV1EventsGet200ResponseInnerTimeDefinitionsInner
- ApiWarehouseV1EventsGet200ResponseInnerTimeDefinitionsInnerTimeInterval
- ApiWarehouseV1EventsGet200ResponseInnerTimeDefinitionsInnerTimeIntervalBegin
- ApiWarehouseV1EventsGet200ResponseInnerTimeDefinitionsInnerTimesInner
- ApiWarehouseV1NewsGet200ResponseInner
- Company
- Notifier
- OrganisersInner
- Person
授权
端点不需要授权。
测试
要运行测试,请使用
composer install
vendor/bin/phpunit
作者
关于此包
此 PHP 包由 OpenAPI Generator 项目自动生成
- API 版本:
0.1
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen