Many of you might not be aware that the Envato marketplaces have an API that can be used to handle everything from verifying purchases, to displaying your most recent items, to tracking featured files, to reviewing private account information, like your recent sales and account balance. But the question is: are you using it?
In addition to displaying your own items, if you’re smart, you can attach your referral id to earn some extra passive income in the process!
But, that said, not all of us are handy with APIs. For the PHP folks in the audience, I’ve made a helpful wrapper class that makes the process as easy as possible. For example, let’s say that you want to display and link to your five most recent items on the the Tutorials marketplace. Well that’s easy!
$Envato = new Envato_marketplaces();
$Envato->display_thumbs('your username', 'desired marketplace name', 'number to display');
And you’re done! Just remember that, if your website receives a decent amount of traffic, you should use either cron jobs or caching to limit the number of API requests that you make.