fw4 / omnicasa-api
PHP library for implementing the Omnicasa API
Installs: 1 998
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 4
Forks: 4
Open Issues: 0
Requires
- php: ^7.4|^8.0|^8.1|^8.2
- guzzlehttp/guzzle: ~6.0|~7.0
- ocramius/package-versions: ^2.1
Requires (Dev)
- phpunit/phpunit: ^8.4|^9.0
This package is auto-updated.
Last update: 2024-12-13 12:49:38 UTC
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.