1
OAuthTokens tokens = new OAuthTokens();
tokens.AccessToken = "188817262xxxxx";
tokens.AccessTokenSecret = "GNqhB1gkxxxx";
tokens.ConsumerKey = "Q6xxxxx";
tokens.ConsumerSecret = "2eZyxxxxxx";
var<TwitterUser> showUserResponse = TwitterUser.Show(tokens, "twitterUsername");
if (showUserResponse.Result == RequestResult.Success)
{
string screenName = showUserResponse.ResponseObject.ScreenName;
Response.Write(screenName);
Response.Write("<br>");
Response.Write(showUserResponse.ResponseObject.NumberOfFollowers);
}
有了這個代碼,我可以讓我的Twitter screenName
和numberOfFollowers
,但我想在我的asp.net應用程序打印那些跟隨screenName
秒。我怎樣才能做到這一點?如何使用Twitterizer獲取給定用戶名的Twitter追隨者screenNames?
FollowersOptions options = new FollowersOptions();
options.ScreenName = "wallace740";
TwitterResponse<TwitterUserCollection> followers = TwitterFriendship.Followers(options);
// Response.Write(followers.Content);
我怎樣才能得到screenName
是我的追隨者從這個JSON(followers.Content
給了我一個JSON結果)?