Apr 15

Are You Using the Envato Marketplaces API?

Fri, 04/15/2011 - 02:01 — julie

Are You Using the Envato Marketplaces API?

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!

require 'Envato_marketplaces.php';
$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.

Envato Marketplace API

Refer here for more usage information.

Learn How to use the PHP Wrapper Class

Alternatively, WordPress users can use Derek’s awesome plugin to achieve much of the same functionality.

If you have any questions or requests which pertain to the marketplace API, let us know in the comments, and we’ll do our best to help you!

Copyright 2009. E-mail Me
Auto Spare Parts