erpk/api

There is no license information available for the latest version (v1.1.0) of this package.

v1.1.0 2014-05-20 12:54 UTC

README

#Introduction It's object-oriented PHP wrapper for official eRepublik API. #Installation Composer is recommended for instalation.

{
    "require": {
        "erpk/api": "*"
    }
}

#Examples

use Erpk\Api\Client;

$client = new Client;
$client->setPrivateKey('my-private-key');
$client->setPublicKey('my-public-key');

$result = $client->call('citizen', 'profile', array('citizenId' => 2292063));
echo $result['general']['name'];

Code above will output name of citizen 2292063. #List of resources You can find it here.