821 posts We're a nice team!
  • Top Monthly Author
  • Weekly Top Seller
  • Trendsetter
  • Elite Author
+12 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
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
  • Elite Author
+7 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!

600 posts (-_-(-_-(-_-)-_-)-_-)
  • Most Wanted Winner
  • Elite Author
  • 3 Years of Membership
  • Beta Tester
+8 more
Themewaves
says

Me too +1

453 posts Mad Dog
  • Power Elite Author
  • Exclusive Author
  • Author Level 12
  • Top Monthly Author
+9 more
GT3themes
says

Me either.

97 posts Be different!
  • Power Elite Author
  • Author Level 12
  • 5 Years of Membership
  • Exclusive Author
+6 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!

821 posts We're a nice team!
  • Top Monthly Author
  • Weekly Top Seller
  • Trendsetter
  • Elite Author
+12 more
ThemeFocus
says

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

300 posts themesdepot.org
  • Trendsetter
  • Weekly Top Seller
  • Author Level 9
  • Elite Author
+8 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?

355 posts
  • Industrious API Inventor
  • Trendsetter
  • Author Level 6
  • Most Wanted Winner
+6 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.

64 posts
  • 5 Years of Membership
  • Affiliate Level 5
  • Author Level 8
  • Collector Level 2
+5 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
  • Author Level 10
  • Winner
  • Top Monthly Author
+9 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