CodeCanyon

Envato API Question

135 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Denmark
  • Bought between 50 and 99 items
  • Referred between 10 and 49 users
chaoscod3r says

I’m working with the Envato API and I’m planning on having a download link to my items on a custom build website that I’m developing.

Of course, in order to download an item you would need a purchase code. But I have a question on this topic though.

In order to download an item I would need to first have this URL prepared :

$url = "http://marketplace.envato.com/api/v3/username/api-key/download-purchase:licence_code.json';

But what I don’t get, is the username in the URL have to be mine, as well the API KEY , or do this have to be the client’s as the purchase code ?

I’m also wondering how safe is it to do this ? I’ll be working with PHP , no JavaScript.

And another thing is, how can we see when an item is updated ? I guess the API doesn’t provide that for now ?

2333 posts
  • Grew a moustache for the Envato Movember competition
  • Community Moderator
  • Elite Author
  • Contributed a Blog Post
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Has been a member for 4-5 years
+8 more
dtbaker moderator says

yep no ability to see when an item is updated.

the username needs to be the BUYERS username, the api key needs to be the BUYERS api key, and the licence purchase code needs to be the BUYERS licence purchase code. nothing to do with the author.

i got this wrong recently :) thinking it was the authors username/api key and the buyers purchase code. but that was wrong.

HigherGroundStudio
HigherGroundStudio Recent Posts
Threads Started
27 posts
  • United States
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 4-5 years
  • Bought between 10 and 49 items
  • Exclusive Author
  • Referred between 10 and 49 users
HigherGroundStudio says

You will have to make a system to check for updates (xml file hosted by you). Check out @Pippins wordpress update notifier for ideas here

by
by
by
by
by