Rest API

跳转到: 导航, 搜索
(创建新页面为 '<big>'''新浪微博 Rest API文档'''</big> == 获取下行数据集(timeline)接口 == *statuses/public_timeline 最新公共微博 *statuses/friends_timeline 最新…')
 
 
(未显示1个用户的1个中间版本)
第1行: 第1行:
 
<big>'''新浪微博 Rest API文档'''</big>
 
<big>'''新浪微博 Rest API文档'''</big>
 
== 获取下行数据集(timeline)接口 ==
 
== 获取下行数据集(timeline)接口 ==
*[[statuses/public_timeline]] 最新公共微博
+
*[[statuses/public_timeline]] 获取最新更新的公共微博消息
*[[statuses/friends_timeline]]  最新关注人微博 (别名: statuses/home_timeline)
+
*[[statuses/friends_timeline]]  获取当前用户所关注用户的最新微博信息 (别名: statuses/home_timeline)
*[[statuses/user_timeline]] 用户发表微博列表
+
*[[statuses/user_timeline]] 获取用户发布的微博信息列表
*[[statuses/mentions]] 最新 @用户的
+
*[[statuses/mentions]] 获取@当前用户的微博列表
*[[statuses/comments_timeline]] 最新评论(按时间)
+
*[[statuses/comments_timeline]] 获取当前用户发送及收到的评论列表
*[[statuses/comments_by_me]] 发出的评论
+
*[[statuses/comments_by_me]] 获取当前用户发出的评论
*[[statuses/comments]] 单条评论列表(按微博)
+
*[[statuses/comments]] 获取指定微博的评论列表
 
*[[statuses/counts]] 批量获取一组微博的评论数及转发数
 
*[[statuses/counts]] 批量获取一组微博的评论数及转发数
*[[statuses/unread]] 获取Web未读消息数(beta)
+
*[[statuses/unread]] 获取当前用户未读消息数
  
 
== 微博访问接口 ==
 
== 微博访问接口 ==
*[[statuses/show]] 获取单条
+
*[[statuses/show]] 根据ID获取单条微博信息内容
*[[user/status/id]]  跳转到微博
+
*[[user/status/id]]  根据微博ID和用户ID跳转到单条微博页面
*[[statuses/update]] 发表微博
+
*[[statuses/update]] 发布一条微博信息
*[[statuses/upload]] 发表微博及图片
+
*[[statuses/upload]] 上传图片并发布一条微博信息
*[[statuses/destroy]] 删除
+
*[[statuses/destroy]] 删除一条微博信息
*[[statuses/repost]] 转发
+
*[[statuses/repost]] 转发一条微博信息(可加评论)
*[[statuses/comment]] 评论
+
*[[statuses/comment]] 对一条微博信息进行评论
*[[statuses/comment_destroy]] 删除评论
+
*[[statuses/comment_destroy]] 删除当前用户的微博评论信息
*[[statuses/reply]] 回复评论
+
*[[statuses/reply]] 回复微博评论信息
  
 
== 用户接口 ==
 
== 用户接口 ==
*[[users/show]] 个人资料
+
*[[users/show]] 根据用户ID获取用户资料(授权用户)
*[[statuses/friends]] 关注人列表
+
*[[statuses/friends]] 获取当前用户关注对象列表及最新一条微博信息
*[[statuses/followers]] 粉丝列表
+
*[[statuses/followers]] 获取当前用户粉丝列表及最新一条微博信息
  
 
== 私信接口 ==
 
== 私信接口 ==
*[[direct_messages]] 我的私信列表
+
*[[direct_messages]] 获取当前用户最新私信列表
*[[direct_messages/sent]] 我发送的私信列表
+
*[[direct_messages/sent]] 获取当前用户发送的最新私信列表
*[[direct_messages/new]] 发送私信
+
*[[direct_messages/new]] 发送一条私信
 
*[[direct_messages/destroy]] 删除一条私信
 
*[[direct_messages/destroy]] 删除一条私信
  
第37行: 第37行:
 
*[[friendships/destroy]] 取消关注
 
*[[friendships/destroy]] 取消关注
 
*[[friendships/exists]] 是否关注某用户(推荐使用friendships/show)
 
*[[friendships/exists]] 是否关注某用户(推荐使用friendships/show)
*[[friendships/show]] 是否关注某用户
+
*[[friendships/show]] 获取两个用户关系的详细情况
  
 
== Social Graph接口==
 
== Social Graph接口==
*[[friends/ids ]] 关注列表
+
*[[friends/ids ]] 获取用户关注对象uid列表
*[[followers/ids ]] 粉丝列表
+
*[[followers/ids ]] 获取用户粉丝对象uid列表
  
 
== 账号接口 ==
 
== 账号接口 ==
*[[account/verify_credentials]] 验证身份是否合法
+
*[[account/verify_credentials]] 验证当前用户身份是否合法
*[[account/rate_limit_status]] 查看当前频率限制
+
*[[account/rate_limit_status]] 获取当前用户API访问频率限制
*[[account/end_session]] 退出
+
*[[account/end_session]] 当前用户退出登录
 
*[[account/update_profile_image]] 更改头像
 
*[[account/update_profile_image]] 更改头像
 
*[[account/update_profile]] 更改资料
 
*[[account/update_profile]] 更改资料
 
*[[account/register]] 注册新浪微博帐号
 
*[[account/register]] 注册新浪微博帐号
 +
*[[Account/activate]] 二次注册微博的接口
  
 
== 收藏接口 ==
 
== 收藏接口 ==
*[[favorites]] 收藏列表
+
*[[favorites]] 获取当前用户的收藏列表
 
*[[favorites/create]] 添加收藏
 
*[[favorites/create]] 添加收藏
*[[favorites/destroy]] 删除收藏
+
*[[favorites/destroy]] 删除当前用户收藏的微博信息
  
 
== 登录/OAuth接口 ==
 
== 登录/OAuth接口 ==
*[[oauth]]
+
*[[oauth]] OAuth授权方式介绍
*[[oauth/request_token]]  
+
*[[oauth/request_token]] 获取未授权的Request Token
*[[oauth/authorize]]
+
*[[oauth/authorize]] 请求用户授权Token
*[[oauth/access_token]]
+
*[[oauth/access_token]] 获取授权过的Access Token
  
 
== 重要字段说明 ==
 
== 重要字段说明 ==
*[[status]]
+
*[[status]] 微博信息内容
*[[user]]  
+
*[[user]] 用户资料信息
*[[comment]]
+
*[[comment]] 评论信息描述
*[[direct_message]]
+
*[[direct_message]] 私信信息
 
*[[省份城市编码表]]
 
*[[省份城市编码表]]

2010年7月22日 (四) 20:28的最后版本

新浪微博 Rest API文档

目录

获取下行数据集(timeline)接口

微博访问接口

用户接口

  • users/show 根据用户ID获取用户资料(授权用户)
  • statuses/friends 获取当前用户关注对象列表及最新一条微博信息
  • statuses/followers 获取当前用户粉丝列表及最新一条微博信息

私信接口

关注接口

Social Graph接口

账号接口

收藏接口

登录/OAuth接口

重要字段说明

文档更新时间: 2010-07-22