resnext / pandats-api-client
PandaTS Web API client
0.1.0
2016-10-25 21:45 UTC
Requires
- php: >=5.6
- guzzlehttp/guzzle: ~6.0
- monolog/monolog: ^1.21
- psr/log: ^1.0
Requires (Dev)
- fzaninotto/faker: ~1.4
- phpunit/phpunit: ^5.1
This package is not auto-updated.
Last update: 2024-11-09 20:39:35 UTC
README
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);