1. Go to this page and download the library: Download itaccfarm/reseller-api-sdk 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/ */
itaccfarm / reseller-api-sdk example snippets
// and/or
use ITAccfarm\ResellerSDK\ResellerSDK;
$api = new ResellerSDK();
$authData = $api->auth('[email protected]', 'pass');
if (empty($success)) {
throw new Exception('Wrong credentials');
}
$bearerToken = $authData['bearerToken'];
$userSecret = $authData['userSecret'];
// Store $userSecret & $bearerToken
// ...