Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to perform a search query using Services_Twitter?
    primarykey
    data
    text
    <p>I am trying to perform a Twitter search using the PEAR package Services_Twitter. Unfortunately this only returns an array of status ids, for example <em>(var_dump)</em>:</p> <pre><code>object(stdClass)#88 (2) { ["statuses"]=&gt; array(11) { [0]=&gt; int(49497593539) [1]=&gt; int(49497593851) [2]=&gt; int(49497598001) [3]=&gt; int(49497599055) [4]=&gt; int(49497599597) [5]=&gt; int(49497600733) [6]=&gt; int(49497602607) [7]=&gt; int(49497607031) [8]=&gt; int(49497607453) [9]=&gt; int(49497609577) [10]=&gt; int(49497610605) } ["created_in"]=&gt; float(0.008847) } </code></pre> <p>The script I'm using is similar to this test script I wrote:</p> <pre><code>&lt;?php //$oAuth = new HTTP_OAuth_Consumer( /** Supply oAuth details here **/ ); $Twitter = new Services_Twitter(); //$Twitter-&gt;setOAuth($oAuth); try { $Response = $Twitter-&gt;search(array( "q" =&gt; "#FF -RT OR #FollowFriday -RT", "rpp" =&gt; 10, "since_id" =&gt; 23982086000, "result_type" =&gt; "recent" )); var_dump($Response); } catch (Exception $e) { fwrite(STDERR, $e-&gt;getMessage()); } ?&gt; </code></pre> <p>Since I want to scan the tweets for certain words and want to know when it was posted and by whom, I would need to request all these statuses one by one. But according to the <a href="http://dev.twitter.com/doc/get/search#example-requests" rel="nofollow noreferrer">example response in the Twitter API documentation</a> they already return all the necessary information about the tweets (which is kinda obvious).</p> <p>So, the question is: How can I access this information using Services_Twitter?</p> <p>Kind Regards,</p> <p>Arno</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload