nomadez/sdk-php

Nomadez SDK written in PHP

dev-master / 0.1.x-dev 2017-12-01 09:40 UTC

This package is not auto-updated.

Last update: 2024-04-27 16:14:39 UTC


README

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']);