PHP client for the Whise webservices.
composer require fw4/whise-webservices
$client = new \Whise\WebServices('12345');
$estates = $client->getEstateList([
'CountryID' => 1
]);
foreach ($estates as $estate) var_dump($estate->id);It's also possible to construct requests through objects:
$request = new \Whise\Request\GetEstateListRequest();
$request->countryID = 1;
$request->zipList = [1000];
$client = new \Whise\WebServices('12345');
$estates = $client->getEstates($request);
foreach ($estates as $estate) var_dump($estate->id);Properties on both requests and responses are implemented case insensitively.
When iterating over a response containing multiple objects, sequential pagination requests will automatically be sent in the background.
Due to unresolved bugs in the webservices, counting some responses might return an incorrect amount.