Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

README.md

armasquads-api-restclient

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

About

php REST API client

Resources

Packages

No packages published

Languages