API Client for Jumbo Web Services
Install the library through Composer using the following steps:
-
cd my/project/directory
-
Create a
composer.json
file with following contents (or update your existing file accordingly):{ "require": { "detailnet/jumbo-client": "^2.0" } }
-
Install Composer via
curl -s http://getcomposer.org/installer | php
(on Windows, download the installer and execute it with PHP) -
Run
php composer.phar self-update
-
Run
php composer.phar install
See the following example for how to use the library:
// App-ID and App-Key are required to authenticate the client
$config = array(
'app_id' => 'your-app-id',
'app_key' => 'your-app-key',
);
// Create the client (e.g. the client for Jumbo Assets Service)
$client = AssetsClient::factory($config);
// Send a request
$params = array('query' => 'test');
$response = $client->listAssets($params);
More examples can be found in the examples directory.