larskoennel / azubiclient
dev-main
2022-10-26 08:00 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
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-26 12:01:47 UTC
README
满足您所有azubi数据需求!
此PHP包是由 Swagger Codegen 项目自动生成的
- API版本:1.0.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\DefaultApi( // 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() ); $id = "id_example"; // string | try { $result = $apiInstance->deleteAzubisDeleteAzubi($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->deleteAzubisDeleteAzubi: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\DefaultApi( // 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() ); $id = "id_example"; // string | try { $result = $apiInstance->getAzubisGetAzubi($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getAzubisGetAzubi: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\DefaultApi( // 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() ); try { $result = $apiInstance->getAzubisGetAzubiList(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getAzubisGetAzubiList: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\DefaultApi( // 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() ); $id = "id_example"; // string | $body = new \Swagger\Client\Model\AzubisIdBody(); // \Swagger\Client\Model\AzubisIdBody | Input data that you want changed. try { $result = $apiInstance->patchAzubisPatchAzubi($id, $body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->patchAzubisPatchAzubi: ', $e->getMessage(), PHP_EOL; } $apiInstance = new Swagger\Client\Api\DefaultApi( // 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\AzubisBody(); // \Swagger\Client\Model\AzubisBody | Input the azubi data try { $result = $apiInstance->postAzubisPostAzubi($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->postAzubisPostAzubi: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于 https://:8000
模型文档
授权文档
所有端点都不需要授权。