revenuewire / lychee-php-sdk
v1.0.7
2017-11-10 21:11 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
README
没有提供描述(由Swagger Codegen生成 https://github.com/swagger-api/swagger-codegen)
此PHP包由Swagger Codegen项目自动生成
- API版本:2017-11-10T21:08:00Z
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
要求
PHP 5.4.0及以后版本
安装 & 使用
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/revenuewire/lychee-php-sdk.git"
}
],
"require": {
"revenuewire/lychee-php-sdk": "*@dev"
}
}
然后运行 composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/.//autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照安装流程进行,然后运行以下操作
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: api_key Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('x-api-key', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('x-api-key', 'Bearer'); $api_instance = new Swagger\Client\Api\DefaultApi(); $id = "id_example"; // string | try { $result = $api_instance->getSession($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling DefaultApi->getSession: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于https://lychee-api.revenuewire.io/v1
模型文档
授权文档
api_key
- 类型:API密钥
- API密钥参数名:x-api-key
- 位置:HTTP头