resnext/pandats-api-client

This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

PandaTS Web API client

0.1.0 2016-10-25 21:45 UTC

This package is not auto-updated.

Last update: 2021-06-12 01:21:10 UTC


README

Software License Build Status Code Coverage Packagist

Registration

$apiClient = new \Panda\ApiClient($url, <Partner ID>, 'Secret key');

$request = new \Panda\Requests\RegistrationRequest([
    'email' => 'john.smith@domain.com',
    'password' => 'qwerty',
    'firstName' => 'John',
    'lastName' => 'Smith',
    'phoneNumber' => '1231231231',
    'source' => '<Source ID>',
    'country' => 'GB',
    'ipAddress' => '78.138.111.152',
]);

/** @var \Panda\Responses\RegistrationResponse $response */
$response = $apiClient->registration($request);