juliogarcia / engaged-api
dev-master
2017-08-10 17:25 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
This package is not auto-updated.
Last update: 2024-09-20 20:31:30 UTC
README
包含所有API调用的Engaged API
此PHP包由Swagger Codegen项目自动生成
- API版本:1.0.0
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
要求
PHP 5.4.0及更高版本
安装与使用
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com//.git"
}
],
"require": {
"/": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照安装步骤进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $api_instance = new Swagger\Client\Api\GameApi(); $api_key = new \DateTime("2013-10-20"); // \DateTime | API-KEY defined in the header. $game_id = 3.4; // float | Game ID. try { $result = $api_instance->aPIKEYGameGAMEIDStatsGet($api_key, $game_id); print_r($result); } catch (Exception $e) { echo 'Exception when calling GameApi->aPIKEYGameGAMEIDStatsGet: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于https://1b282yiqu3.execute-api.us-west-2.amazonaws.com/prod
模型文档
授权文档
所有端点都不需要授权。