• strict warning: Only variables should be passed by reference in /home/www/web/websitetutorials.net/sites/all/modules/memcache/memcache.inc on line 319.
  • strict warning: Only variables should be passed by reference in /home/www/web/websitetutorials.net/sites/all/modules/memcache/memcache.inc on line 319.
  • strict warning: Only variables should be passed by reference in /home/www/web/websitetutorials.net/sites/all/modules/memcache/memcache.inc on line 319.
  • strict warning: Only variables should be passed by reference in /home/www/web/websitetutorials.net/sites/all/modules/memcache/memcache.inc on line 319.
  • strict warning: Only variables should be passed by reference in /home/www/web/websitetutorials.net/sites/all/modules/memcache/memcache.inc on line 319.
  • strict warning: Only variables should be passed by reference in /home/www/web/websitetutorials.net/sites/all/modules/memcache/memcache.inc on line 319.
  • strict warning: Non-static method view::load() should not be called statically in /home/www/web/websitetutorials.net/sites/all/modules/views/views.module on line 879.
  • strict warning: Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) in /home/www/web/websitetutorials.net/sites/all/modules/views/handlers/views_handler_argument.inc on line 745.
  • strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /home/www/web/websitetutorials.net/sites/all/modules/views/handlers/views_handler_filter.inc on line 589.
  • strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /home/www/web/websitetutorials.net/sites/all/modules/views/handlers/views_handler_filter.inc on line 589.
  • strict warning: Declaration of views_handler_filter_boolean_operator::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/www/web/websitetutorials.net/sites/all/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 149.
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!

<?php
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