我使用tweetsharp 2.3.1。当我尝试从某个帐户获取所有关注者时,我使用" ids"变量。它有什么问题?
private void button1_Click(object sender, EventArgs e)
{
TwitterClientInfo tci = new TwitterClientInfo();
tci.ConsumerKey = "***";
tci.ConsumerSecret = "***";
TwitterService ts = new TwitterService(tci);
var options = new ListFollowersOptions { ScreenName = "***" };
var ids = ts.ListFollowers(options);
foreach (var id in ids) //there is an exception here
{
listBox1.Items.Add(id.ScreenName);
}
}
非常感谢!