PHP code example of fw4 / omnicasa-api
1. Go to this page and download the library: Download fw4/omnicasa-api library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fw4 / omnicasa-api example snippets
$client = new \Omnicasa\Omnicasa('name', 'password');
$properties = $client->getPropertyList([
'CountryIDs' => [10]
]);
foreach ($properties as $property) var_dump($property->id);
$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);