mobianglobal/mobian-api-php
最新稳定版本:1.1.1
Composer 安装命令:
composer require mobianglobal/mobian-api-php
包简介
MOBIAN Global API package for PHP.
README 文档
README
The MOBIAN API Client for PHP can be used to book various mobility services on the MOBIAN platform. We tend to make the integration as easy as possible by setting up this package. It should take care of the default requests and validations for the API connection to be setup.
This package is actively maintained with the API's versions to make switching between versions less of a pain as well.
Requirements
- PHP 7.1 or higher
- cURL
- MOBIAN API access
Composer installation
By far the easiest way to install the package is to require it with Composer.
composer require mobianglobal/mobian-api-php
Getting started
Set up the configuration to use your API key.
use Mobian\ApiClient\MobianApiConfig; MobianApiConfig::setAuthKey('RESELLER_KEY_HERE');
Fetching a set of bookings with a reservation status of completed.
use Mobian\ApiClient\MobianApiClient; use Mobian\ApiClient\Requests\Bookings\GetBookingsRequest; $request = new GetBookingsRequest([ 'reservation_status' => ['completed'], ]); $bookings = MobianApiClient::request($request);
All available calls and filters are explained in our API documentation.
统计信息
- 总下载量: 4.87k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-06