uteq / etim-php-client
A PHP Package for the ETIM API
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-12-23 05:57:46 UTC
README
ETIM International webservices. - Extra documentation and testclient
This PHP package is automatically generated by the Swagger Codegen project:
- API version: 2.0
- Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen
Requirements
PHP 5.5 and later
Installation & Usage
Composer
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}
Then run composer install
Manual Installation
Download the files and include autoload.php
:
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
Tests
To run the unit tests:
composer install
./vendor/bin/phpunit
Getting Started
Please follow the installation procedure and then run the following:
<?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; } ?>
Documentation for API Endpoints
All URIs are relative to /
Documentation For Models
- 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
Documentation For Authorization
All endpoints do not require authorization.