Library to access iAdvize api
use Iadvize\ApiRestClient\Client;
// Create client
$client = new Client();
$client->setAuthenticationKey(API_KEY);
// Get resource
$website = $client->getResource('website', 123);
// Display resource
if ($website) {
printf(
'[%s] — %s - http://%s' . PHP_EOL,
$website['id'],
$website['name'],
$website['url']
);
} else {
echo $client->getLastResponse()->getMeta()->getMessage();
}
composer require iadvize/apirestclient
You can access the documentation here : documentation
cp ./phpunix.xml.dist ./phpunix.xml
./vendor/bin/phpunit -c phpunit.xml
Look at contribution guidelines here : CONTRIBUTING.md