最新のつぶやきをウェブページに表示しようとしていますが、私はTwitterのAPIの新機能としてこれを行う方法がわかりませんが、ここまではこれまであります。Twitterの最新のつぶやきは動作しません
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 = 'http://stream.twitter.com/1/statuses//show/:id.json';
//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);
私が認証し、その後、TwitterのAPIとのインターフェイスにこのhttps://github.com/themattharris/tmhOAuthを使用していますが、これのすべては私にとって非常に新しいものであると私はそれが非常に混乱探しています。
基本的に私はちょうど最新のつぶやきを入手したいと思います。私はこれを早急にやっておく必要があるので、どんな助力も大いに感謝します! :)
こちらをご覧ください。私は ':id'をどのように取得するのか不明です – Odyss3us