1. Go to this page and download the library: Download smartsites/linkshare-api 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/ */
smartsites / linkshare-api example snippets
// Options contain the information ndpoints.
$options = [
// Required: The client ID as provided by the developer's portal
// This will vary for each API.
'client_id' => $clientId,
// Required: The client secret as provided by the developer's portal
// This will vary for each API.
'client_secret' => $password,
// Required: The access token as provided by the developer's portal
// This will vary for each API.
'access_token' => $access_token,
// Required: Your LinkShare Affiliate username
'username' => $username,
// Required: Your LinkShare Affiliate password
'password' => $password,
// Required: Your LinkShare Affiliate Site ID
'scope' => $scope,
// Optional: The timeout (in seconds) before a request fails
'timeout' => $timeout,
];
// To create an API client, simply supply the
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.