ayinkellc/otito-php-sdk
Composer 安装命令:
composer require ayinkellc/otito-php-sdk
包简介
Otito PHP SDK. Generated from swagger file
README 文档
README
For more information, please visit https://otito.dev.
Installation & Usage
Requirements
PHP 7.4 and later. Should also work with PHP 8.0.
Composer
To install the bindings via Composer, add the following to composer.json:
composer require ayinkellc/otito-php
Then run composer install
Getting Started
Please follow the installation procedure and then run the following:
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: ApiKeyAuth $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKey('Authorization','sk_YOUR_API_KEY'); $config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer'); $apiInstance = new OpenAPI\Client\Api\ApplicationApi( // If you want use a custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $message = new \OpenAPI\Client\Model\ServerCreateApplicationRequest("Name of Application"); try { $result = $apiInstance->applicationsPost($message); print_r($result); } catch (Exception $e) { echo 'Exception when calling ApplicationApi->applicationsPost: ', $e->getMessage(), PHP_EOL; }
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: unlicense
- 更新时间: 2023-06-10