PhotoDune

Learn How to Use the Envato Marketplaces API

2529 posts
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Blog Editor
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Envato Staff
  • Exclusive Author
+8 more
JeffreyWay moderator says

Hidey ho, everyone! Some of you may not be aware that the Envato marketplaces have an API that can be used to display your recent items, author stats, most popular items, verify purchases, practically anything.

You can read the documentation here: http://marketplace.envato.com/api/documentation/

We’ve also, just today, launched a new YouTube channel – envatoMarketplaces, where we’ll teach you how to execute various neat tricks with the API . Be sure to subscribe to stay up to date on the latest lessons.

PHP Wrapper Class

If you work with PHP , and need a super-simple method to interact with the marketplaces and the marketplace API :
71 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Germany
  • Has been a member for 3-4 years
  • Referred between 50 and 99 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 10 000 and 50 000 dollars
bogdanspn says

Goody! Let the vids flow…

1763 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Germany
  • Has been a member for 4-5 years
  • Microlancer Beta Tester
  • Referred between 1 and 9 users
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Sold between 5 000 and 10 000 dollars
BroOf says

Nice video tutorial ;) Thank you!

744 posts
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Exclusive Author
  • Has been a member for 2-3 years
Flinzar says

YES ! i’ve been wanting this for a long time. A suggestion..also make a video where it shows how to upload items, what to include, etc. because starters have a lot of difficulties with it..

624 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 100 and 1 000 dollars
Thecodingdude says

I was going to make a tutorial on this :(

You beat me too it, I sent a pitch in as well. :P

5217 posts
  • Community Superstar
  • Italy
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Microlancer Beta Tester
  • Beta Tester
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
  • Author had a Free File of the Month
+2 more
doru says

lol I was the first who give a “thumb up” to that video! I’m awesome.

Great video, need to learn this envato API at some point and this video helps a lot.

136 posts Ahoy, me Hearties!
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 3-4 years
  • Bought between 100 and 499 items
  • Referred between 50 and 99 users
  • United Kingdom
  • Exclusive Author
ChrisMooney says

Great stuff. Can we do requests? :p

A way for authors to identify verified buyers for support forums would be great.

2541 posts
  • Community Moderator
  • United States
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Has been a member for 4-5 years
  • Contributed a Tutorial to a Tuts+ Site
+5 more
CreatingDrew moderator says

Great stuff. Can we do requests? :p A way for authors to identify verified buyers for support forums would be great.

Hi Chris,

This already exists, see the documentation for verifying purchases through the API . A lot of authors have been using this to integrate verification into their own apps.

136 posts Ahoy, me Hearties!
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 3-4 years
  • Bought between 100 and 499 items
  • Referred between 50 and 99 users
  • United Kingdom
  • Exclusive Author
ChrisMooney says

Hi Chris, This already exists, see the documentation for verifying purchases through the API . A lot of authors have been using this to integrate verification into their own apps.

Whoops, my bad! Thanks for pointing it out, I’ll get dug in :)

2529 posts
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Blog Editor
  • Bought between 50 and 99 items
  • Contributed a Tutorial to a Tuts+ Site
  • Envato Staff
  • Exclusive Author
+8 more
JeffreyWay moderator says

Just added a verify_purchase method to this class: https://github.com/JeffreyWay/Envato-Marketplace-API-Wrapper-in-PHP

You can use it like so:

require 'Envato_marketplaces.php';
$Envato = new Envato_marketplaces();
$Envato->set_api_key('your api key');

// Ensure that somebody bought your item.
// If successful, $verify will be an object which
// contains all of the purchase information.
$verify = $Envato->verify_purchase('your username', 'buyer purchase code');

// Quickie test. 
if ( isset($verify->buyer) ) echo 'bought';
else echo 'did not buy';
by
by
by
by
by