52 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Slovenia
  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
ProteusThemes says

To simplify the process of the verifying purchase codes I decided to write a simple shell script. I am a heavy terminal user and this is by far the simplest and fastest way to do.

I though that it might be useful for some of you as well. You can see instructions / download it here: https://github.com/primozcigler/everify.sh

;)

2954 posts
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
+10 more
dtbaker Volunteer moderator says

Looks good! (is that a real purchase code?)

Hey add a user agent like “everify by ProteusThemes” to that curl request. Devs said somewhere that they would like all API requests to have a user agent so apps can be tracked / they don’t get blocked.

Edit: works well :) cheers!

52 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Slovenia
  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
ProteusThemes says

Looks good! (is that a real purchase code?)

Hey add a user agent like “everify by ProteusThemes” to that curl request. Devs said somewhere that they would like all API requests to have a user agent so apps can be tracked / they don’t get blocked.

Edit: works well :) cheers!

Perfect!

I’ve added user agent header just as you suggested …

Yes, that is a real purchase code, but I will blur it now :P

3671 posts Community Moderator
  • Has been a member for 5-6 years
  • Contributed a Tutorial to a Tuts+ Site
  • Netherlands
  • Community Moderator
  • Envato Studio (Microlancer) Beta Tester
  • Sold between 10 000 and 50 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Exclusive Author
+4 more
Joost Volunteer moderator says

Nice work! This is bound to come in handy :)

It seems like a bit of overkill to pipe the entire thing to Python just to clean up the output, but hey, it’s not like it’s a dependency when everyone has it anyway Nevermind, this does appear to be the only proper way to go. My little sed-experiment does not even come close ;)

52 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Slovenia
  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
ProteusThemes says

Yes, I tried to google for more ‘native’ approach, but as you said – linux and mac comes with python preinstalled, so it is the easiest option to use it :)

491 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

You could use xml format instead of json to avoid the extra parsing

52 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Slovenia
  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
ProteusThemes says

I tried that as well, but it still returns the result in one line. I prefer JSON anyway.

52 posts
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Exclusive Author
  • Referred between 100 and 199 users
  • Slovenia
  • Bought between 50 and 99 items
  • Has been a member for 1-2 years
ProteusThemes says

Just added the option that the first argument can be provided as the purchase code. If missing, the script will prompt for the input.

$ everify.sh e4e91153-XXXX-4483-XXXX-882ee0686787 # first argument is the purchase code
238 posts
  • Exclusive Author
  • Has been a member for 0-1 years
  • Sold between 100 and 1 000 dollars
BizLogic says

Thanks for sharing!

207 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 1-2 years
  • Exclusive Author
themeflame says
Great one. Here’s mine, in Python: (Edited, realized you guys would like to keep it all in one script) http://pastebin.com/jGbnh1n2

Just make your credentials’ file and you’re good to go!

Could’ve used urllib2 to add headers to make it look legitimate, but since it worked okay, I guess it’s not a problem.
by
by
by
by
by
by