2010-08-18 83 views
1

我使用的是Twitterizer 2.一般而言,它的工作非常好,但我缺少一件東西。
我需要得到我的用戶的所有追隨者。而該方法帶來的Twitterizer.TwitterFriendship.Followers(Token)只帶來了其中的100個。
在Twitter API中我看到你可以使用遊標來請求「分頁」,但是我在twitterizer中找不到這個功能。
任何想法的人?使用twitterizer獲取所有Twitter追隨者

回答

3

TwitterUserCollection類(由關注者方法返回)具有將爲您執行分頁的NextPage()和PreviousPage()方法。

例如,爲了讓所有的追隨者,才能執行此:

TwitterUserCollection myFollowers = TwitterFriendship.Followers(token); 

while (myFollowers != null) 
{ 
    // Do something with the users here 

    // Get the next page 
    myFollowers = myFollowers.NextPage(); 
} 

如果您還有其他疑問,請他們在我們的論壇:http://forums.twitterizer.net/

相關問題