1
請幫忙。Tweetsharp沒有獲得方法listFollowerOf
我嘗試在我的數據庫中獲得Twitter追隨者,但是TweetSweet.TwitterService不包含'ListFollowerOf'的定義,並且沒有找到接受類型爲'TweetSharp.TwitterService'的第一個參數的擴展方法'ListFollowerOf' 。 (是否缺少using指令或程序集引用?)
請幫忙。Tweetsharp沒有獲得方法listFollowerOf
我嘗試在我的數據庫中獲得Twitter追隨者,但是TweetSweet.TwitterService不包含'ListFollowerOf'的定義,並且沒有找到接受類型爲'TweetSharp.TwitterService'的第一個參數的擴展方法'ListFollowerOf' 。 (是否缺少using指令或程序集引用?)
使用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);
查看此答案http://stackoverflow.com/a/22122525/203371瞭解如何獲取關注者信息的擴展示例。 –
難道我的回答幫助? –