There's a problem when I using twitter API about JSON response.
Here is the sample code:

$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET,
$access_token['oauth_token'], $access_token['oauth_token_secret']);
$content = $connection->get('statuses/followers');

When I do this the response will be OK, an array of stdClass Objects.
But when I change the code into

$content = $connection->get('statuses/followers.json');
or
$content = $connection->get('statuses/followers.xml');

the response will both be NULL.
but the  $connection->http_code is 200.

Did I misuse the API or miss something?

Can someone please help me out with this ?

-smallbighead

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to