ins0 / armasquads-api-restclient
ArmAsquads.com RESTful API SDK
v1.0.0
2014-08-14 11:33 UTC
Requires
- php: >=5.3.0
- ext-json: *
Requires (Dev)
- phpunit/phpunit: 4.1.*
Suggests
- ext-curl: *
- ext-openssl: *
- lib-curl: *
- lib-openssl: *
This package is auto-updated.
Last update: 2024-12-11 17:06:15 UTC
README
php armasquads.com REST API client
example
$auth = new \ArmAsquads\Api\Authentication\HttpHeader('YOUR_API_KEY'); $api = new \ArmAsquads\Api($auth); Try { $squads = $api->getSquads(); foreach($squads as $squad) { echo $squad->getName() . "\r\n"; } } Catch(\ArmAsquads\Api\Exception $e) { echo $e->getMessage() . PHP_EOL; echo $api->getLastResponseStatusCode() . PHP_EOL; print_r($api->getResponseErrorMessages()); }