I am attempting to use the twitteroauth library to make a query, and I am getting some odd responses back.
My code: $twitteroauth = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET); $q=urlencode("#twitter"); $query = $twitteroauth->get("search.json?q={$q}&rpp=100"); echo "<pre>"; $qq = $query; print_r($qq); echo "</pre>"; First odd result is, when I try doing a JSON decode, I get an error that it is not JSON which is what I expected to get back. Second odd result is when I print_r, this is what I recieve back: stdClass Object ( [created_in] => 0.11146 [statuses] => Array ( [0] => 4.2285483207823E+16 [1] => 4.2285478212403E+16 [2] => 4.2285477021237E+16 [3] => 4.228546655225E+16 [4] => 4.2285444607648E+16 [5] => 4.2285433509528E+16 [6] => 4.2285433383559E+16 .... so on all the way down to 100 ) ) -- 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