PHP code example of morningtrain / envato-api
1. Go to this page and download the library: Download morningtrain/envato-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/ */
morningtrain / envato-api example snippets
php
MorningTrain\EnvatoApi\EnvatoApi;
define('ENVATO_TOKEN', 'YOUR-ENVATO-API-TOKEN');
$envatoClient = new EnvatoApi(ENVATO_TOKEN);
$sales = $envatoClient->getAuthorSales(0);