juliogarcia3378 / swagger-codegen
dev-master
2017-05-16 01:24 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:52:31 UTC
README
使用OpenParty 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_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@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\EventApi(); $date = new \DateTime(); // \DateTime | Date for event. $venue = "venue_example"; // string | Id for the venue. try { $result = $api_instance->eventsGet($date, $venue); print_r($result); } catch (Exception $e) { echo 'Exception when calling EventApi->eventsGet: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于https://api.openparty.co/v0
模型文档
授权文档
所有端点都不需要授权。