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 ?
- Grew a moustache for the Envato Movember competition
- Community Moderator
- Contributed a Blog Post
- Author was Featured
- Item was Featured
- Won a Competition
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Has been a member for 4-5 years
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.
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
