2011-04-21 26 views
-1

我需要在我的主頁上收到少數我最後一條短時間內的推文。告訴我最簡單的方法來做到這一點。
PS我用笨,這將是很好的得到一個解決方案,這^ _^如何獲取某個用戶使用php的最後10條推文?

非常感謝你從手動早期

+1

你可能喜歡看到http://stackoverflow.com/questions/422879/best-twitter-php-library – Treffynnon 2011-04-21 12:14:54

+1

的答案你看過Twitter API的?爲什麼不先做一次,如果你不能做這個工作發佈你試過的東西,然後問一些問題。你所要求的是讓社區在你的身邊編寫你的代碼並不是很明顯。 – Kev 2011-04-21 12:18:10

回答

3

Zend_Service_Twitter例如:

$twitter = new Zend_Service_Twitter(array(
    'username' => 'johndoe', 
    'accessToken' => $token, 
    'count' => 10, 
)); 
$response = $twitter->status->userTimeline(); 

你可以使用codeignitor就可以。

相關問題