808 posts We're a nice team!
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $125,000+ on Envato Market
+9 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
  • Has referred 10+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+3 more
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!

480 posts (-_-(-_-(-_-)-_-)-_-)
  • Has referred 50+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+5 more
Themewaves says

Me too +1

273 posts Mad Dog
  • Has referred 500+ members
  • Has sold $750,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+6 more
mad_dog says

Me either.

92 posts Be different!
  • Has referred 500+ members
  • Has sold $750,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+3 more
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!

808 posts We're a nice team!
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $125,000+ on Envato Market
+9 more
ThemeFocus says

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

238 posts themesdepot.org
  • Has sold $125,000+ on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Won a Most Wanted contest
  • Has referred 10+ members
+6 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?

184 posts
  • Has sold $10,000+ on Envato Market
  • Won a Most Wanted contest
  • Made it to the Authors' Hall of Fame
  • Has referred 10+ members
+4 more
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.

23 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
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
   }
91 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $250,000+ on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
+6 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