ins0/armasquads-api-restclient

ArmAsquads.com RESTful API SDK

v1.0.0 2014-08-14 11:33 UTC

This package is auto-updated.

Last update: 2024-12-11 17:06:15 UTC


README

Master: Build Status

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());
    }