2
我想從使用php的twitter中檢索提及。目前的代碼,我已經很好地檢索user_timeline,但是當我嘗試使用相同的代碼的提到我得到一個身份驗證錯誤。檢索包含用戶標識,圖片,文本等的提及的最佳方式是什麼?從twitter提起提及使用php
如果我將user_time更改爲提及我遇到驗證錯誤。
這是我現在用php檢索user_timeline的代碼。
<?php
$xmldata = "http://twitter.com/statuses/user_time/usernid.xml";
$open = fopen($xmldata,'r');
$content = stream_get_contents($open);
fclose($open);
$xml = new SimpleXMLElement($content);
$screenname = $xml->status[0]->user->screen_name;
?>
即時通訊銀行,這是訪問級別要求您有一個應用程序註冊到Twitter開發,並使用oauth訪問服務api的.. Twitter確實有一些公開可用的東西,比如time_lines,但是很多其他的東西都需要你註冊一個應用。 – chris 2012-01-31 09:42:49