uteq / etim-php-client
ETIM API 的 PHP 包
dev-main
2020-12-22 20:17 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.5
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-23 05:30:23 UTC
README
ETIM 国际 webservices. - 额外文档和测试客户端
此 PHP 包由 Swagger Codegen 项目自动生成
- API 版本:2.0
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen
需求
PHP 5.5 及以上
安装与使用
Composer
要通过 Composer 安装绑定,请在 composer.json
中添加以下内容
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含 autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门
请按照 安装步骤 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new Swagger\Client\Api\ClassApi( // 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() ); $body = new \Swagger\Client\Model\ClassDetailsInput(); // \Swagger\Client\Model\ClassDetailsInput | Object of type Etim.Models.Elastic.ClassDetailsInput. try { $result = $apiInstance->apiV2ClassDetailsDiffPost($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling ClassApi->apiV2ClassDetailsDiffPost: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\ClassApi( // 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() ); $body = new \Swagger\Client\Model\ClassDetailsReleaseInput(); // \Swagger\Client\Model\ClassDetailsReleaseInput | Object of type Etim.Models.Elastic.ClassDetailsReleaseInput. try { $result = $apiInstance->apiV2ClassDetailsForReleasePost($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling ClassApi->apiV2ClassDetailsForReleasePost: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\ClassApi( // 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() ); $body = new \Swagger\Client\Model\ClassListInput(); // \Swagger\Client\Model\ClassListInput | Objects of type Etim.Models.Elastic.ClassListInput. try { $result = $apiInstance->apiV2ClassDetailsManyPost($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling ClassApi->apiV2ClassDetailsManyPost: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\ClassApi( // 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() ); $body = new \Swagger\Client\Model\ClassDetailsInput(); // \Swagger\Client\Model\ClassDetailsInput | Object of type Etim.Models.Elastic.ClassDetailsInput. try { $result = $apiInstance->apiV2ClassDetailsPost($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling ClassApi->apiV2ClassDetailsPost: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\ClassApi( // 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() ); $body = new \Swagger\Client\Model\EntitySearchInput(); // \Swagger\Client\Model\EntitySearchInput | Object of type Etim.Models.Elastic.EntitySearchInput. try { $result = $apiInstance->apiV2ClassSearchPost($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling ClassApi->apiV2ClassSearchPost: ', $e->getMessage(), PHP_EOL; } ?>
API 端点文档
所有 URI 都相对于 /
模型文档
- Changecode
- ClassCodeVersion
- ClassDetailsInput
- ClassDetailsReleaseInput
- ClassListInput
- ClassSearchOutput
- EntityDetailsInput
- EntitySearchInput
- EtimClass
- EtimClassFeature
- EtimClassFeatureValue
- EtimClassMinimal
- EtimClassTranslation
- EtimFeature
- EtimGroup
- EtimTranslation
- EtimUnit
- EtimUnitTranslation
- EtimValue
- FeatureSearchOutput
- FilterModel
- GroupSearchOutput
- IncludeModel
- Language
- ProblemDetails
- Release
- SteeringParms
- UnitSearchOutput
- ValueSearchOutput
授权文档
所有端点都不需要授权。