Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.7.0

Doc Bug #17872 Search only returns status ids
Submitted: 2010-09-17 15:14 UTC
From: arnom Assigned:
Status: Open Package: Services_Twitter (version 0.6.3)
PHP Version: 5.3.0 OS: Ubuntu Server 10.04
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 30 + 50 = ?

 
 [2010-09-17 15:14 UTC] arnom (Arno Moonen)
Description: ------------ When I perform a search using Services_Twitter (with oAuth details supplied), it only returns an array of ids and a field called created_in. How can I extract the actually tweets and the users who send them? Test script: --------------- <?php //$oAuth = new HTTP_OAuth_Consumer( /** Supply oAuth details here **/ ); $Twitter = new Services_Twitter(); //$Twitter->setOAuth($oAuth); try { $Response = $Twitter->search(array( "q" => "#FF -RT OR #FollowFriday -RT", "rpp" => 10, "since_id" => 23982086000, "result_type" => "recent" )); var_dump($Response); } catch (Exception $e) { fwrite(STDERR, $e->getMessage()); } ?> Expected result: ---------------- I would like to access the fields shown in this example response in the Twitter API documentation: http://dev.twitter.com/doc/get/search#example-requests Actual result: -------------- object(stdClass)#88 (2) { ["statuses"]=> array(11) { [0]=> int(49497593539) [1]=> int(49497593851) [2]=> int(49497598001) [3]=> int(49497599055) [4]=> int(49497599597) [5]=> int(49497600733) [6]=> int(49497602607) [7]=> int(49497607031) [8]=> int(49497607453) [9]=> int(49497609577) [10]=> int(49497610605) } ["created_in"]=> float(0.008847) }

Comments

 [2010-09-17 19:27 UTC] till (Till Klampaeckel)
See my reply on stackoverflow to clarify this issue: http://stackoverflow.com/questions/3735180/how-to-perform-a-search-query- using-services-twitter/3736667#3736667