806 posts We're a nice team!
  • Elite Author
  • Author had a File in an Envato Bundle
  • Has been a member for 4-5 years
  • Interviewed on the Envato Notes blog
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Contributed a Tutorial to a Tuts+ Site
+4 more
ThemeFocus says

Just submit a support ticket with API not works problem.

Here also can’t works and show.

Warning: file_get_contents(http://marketplace.envato.com/api/edge/xxxxxx.json) [function.file-get-contents]: failed to open stream: HTTP request failed!
69 posts
  • Elite Author
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Referred between 10 and 49 users
  • Bought between 1 and 9 items
  • Has been a member for 1-2 years
DeluxeThemes says

Confirmed! Adding the user agent in cURL works for cURL based requests.

Still can’t get/figure how to fix it for file_get_contents() method (like ThemeFocus)

Many thanks!

466 posts (-_-(-_-(-_-)-_-)-_-)
  • Elite Author
  • Mongolia
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
  • Exclusive Author
  • Beta Tester
Themewaves says

Me too +1

250 posts Mad Dog
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Most Wanted Bounty Winner
  • Exclusive Author
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
  • Referred between 500 and 999 users
+1 more
mad_dog says

Me either.

91 posts Be different!
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Referred between 500 and 999 users
  • Exclusive Author
  • Has been a member for 3-4 years
  • Bought between 10 and 49 items
UnitedThemes says

Hi,

have a look here for the file_get_content issue. Solved it for us:

http://stackoverflow.com/a/13969212

Hope this helps!

806 posts We're a nice team!
  • Elite Author
  • Author had a File in an Envato Bundle
  • Has been a member for 4-5 years
  • Interviewed on the Envato Notes blog
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Contributed a Tutorial to a Tuts+ Site
+4 more
ThemeFocus says

Who can provide full code about the API works example? Thanks.

235 posts themesdepot.org
  • Elite Author
  • Most Wanted Bounty Winner
  • Sold between 100 000 and 250 000 dollars
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Bought between 50 and 99 items
  • Exclusive Author
+1 more
ThemesDepot says

I’m using the CloudWork-Verifi plugin on my support forum, i have not received any complaint yet about registrations not working, i’ve also had a really quick look inside the code of the plugin but i haven’t noticed any file_get_contents or curl calls, is anyone using this plugin too and having any problems with it?

134 posts
  • Sold between 10 000 and 50 000 dollars
  • Most Wanted Bounty Winner
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Grew a moustache for the Envato Movember competition
  • Has been a member for 5-6 years
  • Exclusive Author
GDragoN says

I’m using the CloudWork-Verifi plugin on my support forum, i have not received any complaint yet about registrations not working, i’ve also had a really quick look inside the code of the plugin but i haven’t noticed any file_get_contents or curl calls, is anyone using this plugin too and having any problems with it?

This plugin uses internal WordPress functions to get remote content, so it is still using CURL, but these functions already put user_agent in all calls so it is OK.

18 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 10 and 49 users
  • Romania
  • Sold between 10 000 and 50 000 dollars
twisted1919 says

It’s funny though since i cannot login at http://analytics.envato.com/ anymore
Seems the change affected them too…

Anyhow, this was a bad move without announcing it earlier, sad…

For those using the envato api class. the curl method must look like:
protected function curl($url) 
   {
      if ( empty($url) ) return false;

      $ch = curl_init($url);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
      curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (iPhone Simulator; U; CPU iPhone OS 4_3_2 like Mac OD X; en-us) AppleWebKit/535.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5");

      $data = curl_exec($ch);
      curl_close($ch);

      $data = json_decode($data);

      return $data; // string or null
   }
83 posts
  • Elite Author
  • Exclusive Author
  • Has been a member for 4-5 years
  • Sold between 250 000 and 1 000 000 dollars
  • Referred between 200 and 499 users
  • Bought between 10 and 49 items
  • Author had a Free File of the Month
  • Won a Competition
+1 more
DOTonPAPER says

Any official answer on this? This seems like a problem with the API and not a modification. I just do not want to do the modifications and after, if this was a problem, my items to stop working again.

by
by
by
by
by
by