Hello,
I have been working at getting a usable response for my timeline from the twitter API all day, I have tried half a dozen different solutions without luck, the query I am trying resolves correctly in the api explorer however when run via the api from my server it always returns a page does not exist error.
Currently trying with https://github.com/J7mbo/twitter-api-php/blob/master/TwitterAPIExchange.php
I am using the following query https://api.twitter.com/1.1/statuses/user_timeline.json?count=10&user_id=1245193159&screen_name=derekliveshere
Authentication seems to be working correctly as the error message is not the same as when you attempt to access the URL directly.
Is there any way to get a more useful error message? I have been trawling forums all day (there are thousands on this error message, most of them referring to api 1) Any tool I have used to check my query confirms that it should be valid.
My code:
$key = $sc_values["tw_key"];
$secret = $sc_values["tw_secret"];
$token = $sc_values["tw_token"];
$token_secret = $sc_values["tw_token_secret"];
$connection = twitterConnectionWithAccessToken($key, $secret, $token, $token_secret);
$tweets = $connection->get($feed_url);
echo json_encode($tweets);
function twitterConnectionWithAccessToken($cons_key, $cons_secret, $oauth_token, $oauth_token_secret) {
$connection = new TwitterOAuth($cons_key, $cons_secret, $oauth_token, $oauth_token_secret);
return $connection;
}