网易微博 C# SDK                 http://t.163.com/Jeek          http://www.cnblogs.com/forgetu/

微博接口                                                                                                                  方法名
微博列表(Timeline)
获取当前登录用户关注用户的最新微博列表(statuses/home_timeline)            OAuthService.GetHomeTimeLine(Int32, Boolean, String, String)
获取最新的公共微博列表(随便看看)(statuses/public_timeline)                        OAuthService.GetPublicTimeLine(Boolean)
获取@评论当前登录用户的微博列表(statuses/mentions)                                 OAuthService.GetMentions(Int32, Boolean, String, String)
获取指定用户的微博列表(statuses/user_timeline)                                             OAuthService.GetUserTimeLine(String, String, String, Boolean, Int32, String, String)
获取当前登录用户所发微博被转发的列表(statuses/retweetsofme)                  OAuthService.GetRetweetsOfMe(Int32, String)
获取我发出的评论列表(/statuses/commentsbyme)                                          OAuthService.GetCommentsByMe(Int32, Boolean, String, String)
获取我收到的评论列表(/statuses/commentstome)                                          OAuthService.GetCommentsToMe(Int32, Boolean, String, String)

微博
发布一条新微博(statuses/update)                                                                        OAuthService.Update(Statues, Double, Double, String)
评论一条微博(statuses/reply)                                                                               OAuthService.Reply(String, Statues, String, String)
转发一条微博(statuses/retweet)                                                                          OAuthService.Retweet(String, String, String, Statues)
获取指定微博信息(statuses/show)                                                                       OAuthService.Show(String)
删除指定的微博(statuses/destroy)                                                                      OAuthService.Destroy(String)
获取指定微博的评论列表(statuses/comments)                                                   OAuthService.Comments(String, Int32, Boolean, String, String)
获取指定微博的转发列表(statuses/retweets)                                                      OAuthService.Retweet(String, String, String, Statues)
获取一条微博被转发的信息(statuses/id/retweeted_by)                                    OAuthService.GetRetweetedBy(String, Int32)
上传图片(statuses/upload)                                                                                    OAuthService.Upload(String, String, Double, Double, String)
                                                                                                                                  OAuthService.Upload(String,  byte[] fileBytes, String, Double, Double, String)

用户
获取指定用户的信息(users/show)                                                                         OAuthService.UserShow(String, String, String, String)
猜你喜欢(users/suggestions)                                                                               OAuthService.Suggestions(Int32, Boolean)
获取推荐I达人列表(users/suggestionsifollowers)                                              OAuthService.SuggestionsIFollowers(String, Boolean)

关系
关注指定用户(friendships/create)                                                                        OAuthService.FriendshipsCreate(String, String)
取消关注指定用户(friendships/destroy)                                                              OAuthService.FriendshipsDestroy(String, String)
获取两个用户的相互关注关系(friendships/show)                                                OAuthService.FriendshipsShow(String, String, String, String)
获取指定用户的关注列表(statuses/friends)                                                          OAuthService.Friends(String, String, Int32)
获取指定用户的被关注列表(statuses/followers)                                                  OAuthService.Followers(String, String, Int32)
获取当前用户的关注人名字列表(friends/names)                                                 暂无

热榜
获取当前的热门转发榜(statuses/topRetweets)                                                   OAuthService.TopRetweets(String, Int32)

话题
推荐话题(trends/recommended)                                                                          OAuthService.TrendsRecommended()

私信
获取当前用户私信列表(direct_messages)                                                              OAuthService.DirectMessages(Int32, String)
获取当前用户发送的私信列表(direct_messages/sent)                                          OAuthService.DirectMessageSent(Int32, String)
发送一条私信(direct_messages/new)                                                                    OAuthService.DirectMessageNew(String, String)
删除一条私信(direct_messages/destroy)                                                             OAuthService.DirectMessageDestory(String)

账号
注册用户(account/register)                                                                                       暂无
开通微博(account/activate)                                                                                       OAuthService.Activate(String, String, String, String)
修改用户个人资料(account/update_profile)                                                            OAuthService.UpdateProfile(String, String, String, String, String)
修改用户个人头像(account/updateprofileimage)                                                   OAuthService.UpdateProfileImage(String)
判断当前用户是否验证成功并返回该用户信息(account/verify_credentials)          OAuthService.VerifyCredentials()
返回当前登录用户未读的消息数量(reminds/message/latest)                                 OAuthService.Latest() // 返回 json 格式
获取当前用户API访问频率限制(account/ratelimitstatus)                                        OAuthService.RateLimitStatus()

收藏
获取指定用户的收藏列表 (favorites)                                                                           OAuthService.Favorites(String, Int32, String)
添加收藏(favorites/create)                                                                                         OAuthService.FavoritesCreate(String)
删除当前用户的收藏(favorites/destroy)                                                                    OAuthService.FavoritesDestroy(String)

黑名单
阻止指定用户(blocks/create)                                                                                      OAuthService.BlocksCreate(String, String)
取消已阻止的用户(blocks/destroy)                                                                            OAuthService.BlocksDestroy(String, String)
判断指定用户是否已被阻止(blocks/exists)                                                                 OAuthService.BlocksExits(String, String)
查看已阻止的用户列表(blocks/blocking)                                                                   OAuthService.Blocking()
查看已阻止的用户列表id数组(blocks/blocking/ids)                                                  暂无

地理位置相关
获取地点列表(/location/venues)                                                                                  OAuthService.GetVenues(Int32, String, Double, Double)
获取与地理位置相关的微博列表(/statuses/location_timeline)                                 OAuthService.LocationTimeLine(Int32, Double, Double, String, String, String)

搜索
搜索微博(search)                                                                                                             OAuthService.Search(String, Int32, Int32)
搜索微博new(statuses/search)                                                                                     OAuthService.SearchStatus(String, Int32, Int32, Boolean)
搜索用户(users/search)                                                                                                  OAuthService.SearchUser(String, Int32, Int32)

Oauth
获取未授权的Request Token(oauth/request_token)                                                OAuthService.GetRequestToken()
                                                                                                                                          OAuthService.GetRequestToken(HttpMethodType)
                                                                                                                                           OAuthService.GetRequestToken(WebProxy, HttpMethodType)
请求用户授权Token(oauth/authenticate)                                                                     OAuthService.GetAuthorizationURL(String)
请求用户授权Token(oauth/authorize)                                                                           OAuthService.GetAuthorizationURL()
通过Request Token换取Access Token(oauth/access_token)                                  OAuthService.GetAccessToken(String)
                                                                                                                                            OAuthService.GetAccessToken(String, HttpMethodType)
                                                                                                                                             OAuthService.GetAccessToken(String, WebProxy, HttpMethodType)

Last edited May 9, 2011 at 1:17 PM by forgetu, version 2

Comments

No comments yet.