Stream API returns you only the tweets posted after you connected. To get previous tweets you need to use general REST API method: dev.twitter.com/doc/get/statuses/show/:id.
Up vote 0 down vote favorite share g+ share fb share tw.
I am trying to show the latest tweets on a webpage, but I am unsure of how to do it as I am very new to the twitter api, but here is what I have thus far. Function my_streaming_callback($data, $length, $metrics) { echo $data; } require '../tmhOAuth. Php'; $tmhOAuth = new tmhOAuth(array( 'consumer_key' => 'key', 'consumer_secret' => 'secret', 'user_token' => 'token', 'user_secret' => 'secret', )); $method = 'stream.twitter.com/1/statuses//show/:id....; //not sure where I am supposed to get the :id from?
$params = array( //not sure what to put here, I would like to display the last 5 tweets ); $tmhOAuth->streaming_request('POST', $method, $params, 'my_streaming_callback'); $tmhOAuth->pr($tmhOAuth); I am using this https://github.com/themattharris/tmhOAuth to authenticate, and then interface with the twitter api, but I am finding it very confusing as all of this is very new to me. So basically I would just like to try and get the latest tweets, any help would be GREATLY appreciated, as I need to get this done ASAP, thanx in advance! :) php twitter twitter-api twitter-oauth link|improve this question asked Jan 31 '11 at 6:30Odyss3us8943729 84% accept rate.
Stream API returns you only the tweets posted after you connected. To get previous tweets you need to use general REST API method: dev.twitter.com/doc/get/statuses/show/:id $tmhOAuth->request('GET', $tmhOAuth->url('1/statuses/show/$id')); $tmhOAuth->pr(json_decode($tmhOAuth->response'response')); where $id is the user's id.
I am unsure of how to get the :id – Odyss3us Jan 31 '11 at 6:46.
If you wish you can use THIS beautiful jQuery plugin. It do the some thing as you require. For more information visit tweet.seaofclouds.com.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.