Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 503 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 503 Bytes

Nomadez SDK - PHP

Nomadez SDK written in PHP

Installation

composer require nomadez/sdk-php dev-master

##Usage

use Nomadez\SDK\Client;
use Nomadez\SDK\Resource as Resource;

$client = new Client();

// authenticate credentials and receive api key

$userPubResource = new Resource\Pub\User($client);

$response = $userPubResource->auth(
    'user@example.com',
    'superSecurePassword1'
);

$payload = $response->getBodyDecoded();

$client->setApiKey($payload['api_key']);