I am trying to use themeforest API to verify purchase. However, I do not have any sample data to test (eg. a test purchase code). Can someone please tell me if there is any way to test the API for the purchase code. I’ll highly appreciate any help in this matter. Thanks.
Hey sushipasta, Thanks for your reply. What you mean that you were wrong? Is there a way to test the API without purchasing any item?
sushipasta said
This * 1000. The Marketplace API is good but lacks dummy data. I’ve just had to purchase an item because I thought I’d be able to use that to test the API . I was wrong. >.>’
As I mentioned in a previous post, you obviously need to purchase your own item from a different account, to test it.
Another user has also posted the sample JSON response that you get when an item successfully verifies; I believe it also returns the item ID, so you could test for that.
sushipasta said
Another user has also posted the sample JSON responseA link would be helpful. Thanks.
Sorry I couldn’t find it in time; glad to see you did 
Hey, Thanks for posting this. How did you get this array? Do you have the link digitalimpact mentioned? So that I can get some basic example on how to use this.
sushipasta said
Another user has also posted the sample JSON responseA link would be helpful. Thanks.
EDIT : For future reference.
Array ( [verify-purchase] => Array ( [licence] => Regular Licence [item_id] => 147510 [buyer] => EnvatoDemo [created_at] => Thu Dec 31 08:28:03 +1100 2009 [item_name] => WordPress Car Dealer ) )
{"verify-purchase":{}}
Can anyone paste a sample link. I have rechecked the api documentation and the links but this
http://marketplace.envato.com/api/v3/USERNAME/API-KEY/verify-purchase:550e8400-e29b-41d4-a716-446655440000.json {Offcourse I’ve replaced the username/apikey & purchasecodes}Simply doesn’t work!!!!
For anyone who visits this: here’s an example given to us by “Envato” of what is called as improper documentation.
http://marketplace.envato.com/api/edge/Author_Username/Author_API_Key/verify-purchase:Buyer_Item_Purchase_Code.json found this here: http://codecanyon.net/forums/thread/finally-used-the-envato-api/35945?page=1#339754a million thanks to Philo01. Finally after 4 hours, I can get this working.
Next, I create a new account in Envato and purchase my own product….duh!
