Trending API - can't poll with PHP

arminrosu Jun 05, 2012 09:04AM EDT

For the love of god, I can't get this url with php:
http://q.addthis.com/feeds/1.0/trending.json?pubid=ra-4df7335e7a022d8e&period=week

Not even a simple "file_get_contents()" works. I keep getting 403 errors.

Accessing the url in the browser works fine.

And yes, I have followed all guides you have / posted as responses to neigh identical questions here. Why did you have to kill the forum?!

Up 0 Rated Down
Paul (AddThis Happiness Specialist) Jun 05, 2012 01:12PM EDT
I'm afraid I can't duplicate the issue. Here's the code I used to get the contents of the file:

echo file_get_contents('http://q.addthis.com/feeds/1.0/trending.json?pubid=ra-4df7335e7a022d8e&period=week');

Can you post the code you're trying to use?
Up 0 Rated Down
arminrosu Nov 15, 2012 04:17AM EST
Sorry, I didn't receive a notification I got an answer.

I'm not certain this is exactly the original code, but here's my latest non-working:
file_get_contents('http://q.addthis.com/feeds/1.0/trending.rss?domain=www.fishingtonpost.ro&pubid=ra-4df7335e7a022d8e&period=week');

Switched to rss as at some point it seemed to work more often. After a couple of tries, it doesn't anymore.

Modifying "domain=www.fishingtonpost.ro" to "domain=fishingtonpost.ro" returns an rss, but no items.

Removing the domain parameter completely seems to work (both JSON and RSS).
Up 0 Rated Down
arminrosu Nov 15, 2012 04:21AM EST
Scrap that, not working anymore. Is there some request capping? Via browser the url works fine. Should I be adding some GET header parameters?

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)

Still need help?


General Topics

 

Developers