请帮帮忙。
我试图在我的数据库中获得推特追随者,但是'TweetSharp.TwitterService‘没有包含'ListFollowerOf’的定义,也找不到接受'TweetSharp.TwitterService‘类型的第一个参数的扩展方法'ListFollowerOf’。(是否缺少using指令或程序集引用?)
发布于 2014-03-02 09:26:43
使用Tweetsharp,您可以使用以下代码获取用户的关注者列表:
var twitterService = new TwitterService("yourConsumerKey", "yourConsumerSecret");
twitterService.AuthenticateWith("yourToken", "yourTokenSecret");
var userProfile = twitterService.GetUserProfile(new GetUserProfileOptions { IncludeEntities = true, SkipStatus = false });
var followerOptions = new ListFollowersOptions
{
IncludeUserEntities = true,
ScreenName = userProfile.ScreenName,
SkipStatus = false,
UserId = userProfile.Id
};
var usersfollowers = twitterService.ListFollowers(followerOptions);https://stackoverflow.com/questions/21985387
复制相似问题