funmula / biggo-api-php-pms-client
BigGo API PMS PHP 客户端是用 PHP 编写的 API
v1.0.0
2023-07-19 06:34 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: >=7.4
README
BigGo PMS API PHP 客户端是用 PHP 编写的 API。
简要未来
入门指南
安装
使用 composer
$ composer require funmula/biggo-api-php-pms-client
初始化
要开始,首先从 BigGo API 获取客户端 ID 和密钥。然后,使用以下代码获取 API 对象
$api = new BiggoPMSAPI( '<Your client ID>', '<Your client secret>' );
您可以通过此指南获取客户端 ID 和密钥
访问 BigGo PMS API
您可以使用 API 对象访问所有 BigGo PMS API 资源。只需使用从 new BiggoPMSAPI()
获取的对象。例如
// Get list of platforms the user has access. $platformList = $api->getPlatformList(); // Get list of groups in the platform. $groupList = $api->getGroupList('<Platform ID>') // Get list of reports in the platform. $reportList = $api->getReportList('<Platform ID>') // Get file content or save report as file. $reportJson = $api->getReport('<Platform ID>', '<Report ID>', 'json')
如果您需要更多信息,可以参考此 文档。
TypeScript
此库支持 TypeScript。