nomadez / sdk-php
Nomadez SDK written in PHP
dev-master / 0.1.x-dev
2017-12-01 09:40 UTC
Requires
- php: >=5.5
- andreas-glaser/php-helpers: dev-master
- fzaninotto/faker: ^1.5
- guzzlehttp/guzzle: ^6.1
- psr/log: ^1
Requires (Dev)
- monolog/monolog: ^1.17
- phpunit/phpunit: ^4
- symfony/var-dumper: ^3.0
This package is not auto-updated.
Last update: 2024-11-09 18:48:53 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']);