PHP code example of stajor / gearbest-affiliate
1. Go to this page and download the library: Download stajor/gearbest-affiliate 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/ */
stajor / gearbest-affiliate example snippets
$api = new \GearBest\API([API KEY], [API SECRET]);
$coupons = $api->listCoupons(['language' => 'en']);