Hi there,
I’ve used this extension for integrating Twitter login, and everything goes fine but I have problem when making API signed requests that uses some parameters.
Calls like these go fine:
http://api.twitter.com/1/account/verify_credentials.json
http://api.twitter.com/1/statuses/home_timeline.json
but I cant have it working along with some parameters like "include_entities" that should be passed as a GET parameter
https://dev.twitter.com/docs/api/1/get/statuses/home_timeline
//THIS WORKS FINE
$timeline = $authIdentity->makeSignedRequest('http://api.twitter.com/1/statuses/home_timeline.json');
//TRYING TO ADD PARAMETERS WITH "query" OPTION
$timeline = $authIdentity->makeSignedRequest('http://api.twitter.com/1/statuses/home_timeline.json', array(
'query' => array(
'include_entities' => true,
'count' => 40
))
);
//PARAMETERS GET IGNORED EVEN WHEN DIRECTLY ENCODED IN THE URL
$timeline = $authIdentity->makeSignedRequest('http://api.twitter.com/1/statuses/home_timeline.json?include_entitities=true');
Things get even worst when trying to make a post request since this call
$timeline = $authIdentity->makeSignedRequest('https://api.twitter.com/1/statuses/update.json', array(
'data' => array(
'status' => 'this is a test'
))
);
Makes twitter tell me: Error 413 Request Entity Too Large
Does anybody tried to work with APIs once authenticated with this extension?