816 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
  • Had an item that was trending
  • Elite Author: Sold more than $75,000 on Envato Market
  • Made it to the Authors' Hall of Fame
  • Had an item featured on Envato Market
+5 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!

585 posts (-_-(-_-(-_-)-_-)-_-)
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Had an item featured on Envato Market
  • Has been part of the Envato Community for over 2 years
+5 more
Themewaves
says

Me too +1

424 posts Mad Dog
  • Had an item that was trending
  • Power Elite Author: Sold more than $1M on Envato Market
  • Sells items exclusively on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
+6 more
mad_dog
says

Me either.

97 posts Be different!
  • Had an item that was trending
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Has referred 1000+ members
+4 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!

816 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.

296 posts themesdepot.org
  • Has sold $250,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?

330 posts
  • Created a helpful tool/app using the Envato API
  • Has sold $40,000+ on Envato Market
  • Won a Most Wanted contest
  • Made it to the Authors' Hall of Fame
+5 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.

46 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $75,000+ on Envato Market and is now an Elite Author
  • Has collected 10+ items on Envato Market
+3 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
   }
110 posts
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Won a competition
  • Made it to the Authors' Hall of Fame
+7 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