Reputation: 4930
A while back, I created a simple Twitter status message reader in PHP. It uses the twitter json feed located on https://twitter.com/statuses/user_timeline/flecpoint.json?count=25
. It reads the timeline, caches it and later checks again if there are new statuses. Nothing fancy.
Everything worked fine, until a few weeks back, where I suddenly experienced the "Sorry, that page does not exist" (code 34)
error.
From that point on, sometimes we got the error, and sometimes everything worked fine. (I disabled cache to be sure the API was actually working) In the beginning I thought it would be an error on Twitter's side, but the problem keeps appearing every so often.
I am 100% sure nothing has changed in my code. I have been googling this but haven't found anything useful to me yet.
For completeness' sake, here is my code with which I read the json file;
$apiUrl = 'https://twitter.com/statuses/user_timeline/' . $user . '.json?count=25';
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $apiUrl);
curl_setopt($curl, CURLOPT_POST, false);
curl_setopt($curl, CURLOPT_BINARYTRANSFER, false);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10);
// send request
$response = curl_exec($curl);
Does anyone have experience with this error?
Upvotes: 1
Views: 3473
Reputation: 43619
Apparently the API that you are using was "unofficial" and unsupported. It's not even the version 1 API.
Version 1 API:
http://api.twitter.com/1/statuses/user_timeline.json?screen_name=_mauris
Version 1.1 requires OAuth authentication.
Reminder: Read the Docs (:
Upvotes: 1