嗨 我想在我的mvc.net应用程序中使用Tweetsharp来获取列表偏好并与他们共享图像。 但我没有得到适当的文件和相同的样本。什么是需要添加控制器的行动和在视图页面。tweetsharp在mvc.net中的实现
请给出一些相同的链接。
感谢
munish
嗨 我想在我的mvc.net应用程序中使用Tweetsharp来获取列表偏好并与他们共享图像。 但我没有得到适当的文件和相同的样本。什么是需要添加控制器的行动和在视图页面。tweetsharp在mvc.net中的实现
请给出一些相同的链接。
感谢
munish
我不知道Tweetsharp但看看linq2twitter。它可以通过使用LINQ轻松访问Twitter API。
public void MyMethod() {
TwitterService service = new TwitterService(key, secret, "Token", "Secret");
ListFriendsOptions options = new ListFriendsOptions();
options.Cursor = 12345;
// should the response have user entities
options.IncludeUserEntities = false;
// The screen name of the user for whom to return results for.
options.ScreenName = "";
options.SkipStatus = false;
// The ID of the user for whom to return results for.
options.UserId = 12345;
// this will return a list of friends for the specified user.
TwitterCursorList<TwitterUser> listOfFriends = service.ListFriends(options);
}
还要注意上面的代码中使用名为TweetSharp第三方库。
至于图像林不知道,什么可以做,但你可以看看Twitter的REST API v1.1的信息
https://dev.twitter.com/docs/api/1.1/get/friends/list
https://dev.twitter.com/docs/api/1.1
TweetSharp https://github.com/danielcrenna/tweetsharp