Skip to content

fw4-bvba/whise-webservices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whise WebServices

PHP client for the Whise webservices.

⚠️ The Whise webservices are deprecated and will be shut down September 2022. It's strongly recommended to use the Whise API instead.

Installation

composer require fw4/whise-webservices

Usage

$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.

Pagination

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.

About

PHP client for Whise webservices

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages