Skip to content

peckanthony/omnicasa-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Omnicasa API

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.

About

PHP client for the Onmicasa API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%