fw4/omnicasa-api
最新稳定版本:v1.2.3
Composer 安装命令:
composer require fw4/omnicasa-api
包简介
PHP library for implementing the Omnicasa API
关键字:
README 文档
README
PHP client for the Onmicasa API.
Installation
composer require fw4/omnicasa-api
Usage
$client = new \Omnicasa\Omnicasa('name', 'password'); $properties = $client->getPropertyList([ 'CountryIDs' => [10] ]); foreach ($properties as $property) var_dump($property->id);
It's also possible to construct requests through objects:
$request = new \Omnicasa\Request\Property\GetPropertyListRequest(); $request->countryIDs = [10]; $request->zips = [1000, 3000]; $client = new \Omnicasa\Omnicasa('name', 'password'); $properties = $client->getPropertyList($request); foreach ($properties as $property) var_dump($property->id);
Properties on both requests and responses are implemented case insensitively. For more information about available request parameters and response properties, refer to the official API spec.
Pagination
When iterating over a response containing multiple objects, sequential pagination requests will automatically be sent in the background.
统计信息
- 总下载量: 3.55k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-21