PHP code example of clsystems / sas-api-client
1. Go to this page and download the library: Download clsystems/sas-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/ */
clsystems / sas-api-client example snippets
use CLSystems\ShareASale\Client;
$service = new Client();
// See https://account.shareasale.com/a-apiManager.cfm for info
// Remember to whitelist your calling IP
$service->setServiceUrl('https://api.shareasale.com');
$service->setVersion('2.3');
$service->setAffiliateId([your affiliate id]);
$service->setToken('[your token]');
$service->setSecretKey('[your secret key]');
$options = [
'dateStart' => '6/22/2016',
];
$records = $service->activity($options);
var_dump($records);