PHP code example of resnext / pandats-api-client
1. Go to this page and download the library: Download resnext/pandats-api-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
resnext / pandats-api-client example snippets
$apiClient = new \Panda\ApiClient($url, <Partner ID>, 'Secret key');
$request = new \Panda\Requests\RegistrationRequest([
'email' => '[email protected]',
'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);