iadvize / apirestclient
iAdvize API Rest client
Installs: 46 550
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 4
Forks: 4
Open Issues: 0
Requires
- php: >=5.4
- kriswallsmith/buzz: v0.10
- zendframework/zend-stdlib: ~2.4
Requires (Dev)
- mockery/mockery: 0.9.*
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2021-10-30 01:03:07 UTC
README
Library to access iAdvize api
Examples
List websites
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(); }
Install
composer require iadvize/apirestclient
Documentation
You can access the documentation here : documentation
Launch tests
cp ./phpunix.xml.dist ./phpunix.xml ./vendor/bin/phpunit -c phpunit.xml
Contribute
Look at contribution guidelines here : CONTRIBUTING.md