第151行: | 第151行: | ||
|- | |- | ||
|[[2/comments/destroy|comments/destroy]] | |[[2/comments/destroy|comments/destroy]] | ||
− | | | + | |删除一条我的评论 |
|- | |- | ||
|[[2/comments/destroy_batch|comments/destroy_batch]] | |[[2/comments/destroy_batch|comments/destroy_batch]] | ||
− | | | + | |批量删除我的评论 |
|- | |- | ||
|[[2/comments/reply|comments/reply]] | |[[2/comments/reply|comments/reply]] | ||
− | | | + | |回复一条我收到的评论 |
|} | |} | ||
第179行: | 第179行: | ||
!colspan="3" scope="col"|<span id="关系">关系</span> | !colspan="3" scope="col"|<span id="关系">关系</span> | ||
|- | |- | ||
− | |rowspan=" | + | |rowspan="2" style="text-align:center;"|关注读取接口 |
|[[2/friendships/friends|friendships/friends]] | |[[2/friendships/friends|friendships/friends]] | ||
|获取用户的关注列表 | |获取用户的关注列表 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|[[2/friendships/friends/ids|friendships/friends/ids]] | |[[2/friendships/friends/ids|friendships/friends/ids]] | ||
|获取用户关注对象UID列表 | |获取用户关注对象UID列表 | ||
|- | |- | ||
− | |rowspan=" | + | |rowspan="2" style="text-align:center;"|粉丝读取接口 |
|[[2/friendships/followers|friendships/followers]] | |[[2/friendships/followers|friendships/followers]] | ||
|获取用户粉丝列表 | |获取用户粉丝列表 | ||
第201行: | 第192行: | ||
|[[2/friendships/followers/ids|friendships/followers/ids]] | |[[2/friendships/followers/ids|friendships/followers/ids]] | ||
|获取用户粉丝UID列表 | |获取用户粉丝UID列表 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|rowspan="1" style="text-align:center;"|关系读取接口 | |rowspan="1" style="text-align:center;"|关系读取接口 |
2017年3月21日 (二) 10:49的版本
微博API
粉丝服务(新手接入指南) | ||
---|---|---|
读取接口 | 接收消息 | 接收用户私信、关注、取消关注、@等消息接口 |
写入接口 | 发送消息 | 向用户回复私信消息接口 |
生成带参数的二维码 | 生成带参数的二维码接口 |
微博 | ||
---|---|---|
读取接口 | statuses/public_timeline | 获取最新的公共微博 |
statuses/friends_timeline | 获取当前登录用户及其所关注用户的最新微博 | |
statuses/home_timeline | 获取当前登录用户及其所关注用户的最新微博 | |
statuses/friends_timeline/ids | 获取当前登录用户及其所关注用户的最新微博的ID | |
statuses/user_timeline | 获取用户发布的微博 | |
statuses/user_timeline/ids | 获取用户发布的微博的ID | |
statuses/timeline_batch | 批量获取指定的一批用户的微博列表 | |
statuses/repost_timeline | 返回一条原创微博的最新转发微博 | |
statuses/repost_timeline/ids | 获取一条原创微博的最新转发微博的ID | |
statuses/mentions | 获取@当前用户的最新微博 | |
statuses/mentions/ids | 获取@当前用户的最新微博的ID | |
statuses/bilateral_timeline | 获取双向关注用户的最新微博 | |
statuses/show | 根据ID获取单条微博信息 | |
statuses/show_batch | 根据微博ID批量获取微博信息 | |
statuses/querymid | 通过id获取mid | |
statuses/queryid | 通过mid获取id | |
statuses/count | 批量获取指定微博的转发数评论数 | |
statuses/go | 根据ID跳转到单条微博页 | |
emotions | 获取官方表情 | |
写入接口 | statuses/share | 第三方分享链接到微博 |
statuses/repost | 转发一条微博信息 | |
statuses/destroy | 删除微博信息 | |
statuses/update | 发布一条微博信息 | |
statuses/upload | 上传图片并发布一条微博 | |
statuses/upload_url_text | 发布一条微博同时指定上传的图片或图片url |
评论 | ||
---|---|---|
读取接口 | comments/show | 获取某条微博的评论列表 |
comments/by_me | 我发出的评论列表 | |
comments/to_me | 我收到的评论列表 | |
comments/timeline | 获取用户发送及收到的评论列表 | |
comments/mentions | 获取@到我的评论 | |
comments/show_batch | 批量获取评论内容 | |
写入接口 | comments/create | 评论一条微博 |
comments/destroy | 删除一条我的评论 | |
comments/destroy_batch | 批量删除我的评论 | |
comments/reply | 回复一条我收到的评论 |
用户 | ||
---|---|---|
读取接口 | users/show | 获取用户信息 |
users/domain_show | 通过个性域名获取用户信息 | |
users/counts | 批量获取用户的粉丝数、关注数、微博数 |
关系 | ||
---|---|---|
关注读取接口 | friendships/friends | 获取用户的关注列表 |
friendships/friends/ids | 获取用户关注对象UID列表 | |
粉丝读取接口 | friendships/followers | 获取用户粉丝列表 |
friendships/followers/ids | 获取用户粉丝UID列表 | |
关系读取接口 | friendships/show | 获取两个用户关系的详细情况 |
写入接口 | friendships/create | 关注某用户 |
friendships/destroy | 取消关注某用户 |
搜索 | ||
---|---|---|
搜索话题接口 | search/topics | 搜索某一话题下的微博 |
提醒 | ||
---|---|---|
读取接口 | remind/unread_count | 获取某个用户的各种消息未读数 |
写入接口 | remind/set_count | 对当前登录用户某一种消息未读数进行清零 |
短链 | ||
---|---|---|
转换接口 | short_url/shorten | 长链转短链 |
short_url/expand | 短链转长链 | |
数据接口 | short_url/share/counts | 获取短链接在微博上的微博分享数 |
short_url/comment/counts | 获取短链接在微博上的微博评论数 |
公共服务 | ||
---|---|---|
读取接口 | common/code_to_location | 通过地址编码获取地址名称 |
common/get_city | 获取城市列表 | |
common/get_province | 获取省份列表 | |
common/get_country | 获取国家列表 | |
common/get_timezone | 获取时区配置表 |
账号 | ||
---|---|---|
读取接口 | account/rate_limit_status | 获取当前用户API访问频率限制 |
account/profile/email | 获取用户的联系邮箱 | |
account/get_uid | OAuth授权之后获取用户UID |
OAuth2(开发指南) | ||
---|---|---|
请求授权 | oauth2/authorize | 请求用户授权Token |
获取授权 | oauth2/access_token | 获取授权过的Access Token |
授权查询 | oauth2/get_token_info | 查询用户access_token的授权相关信息 |
替换授权 | oauth2/get_oauth2_token | OAuth1.0的Access Token更换至OAuth2.0的Access Token |
授权回收 | OAuth2/revokeoauth2 | 授权回收接口,帮助开发者主动取消用户的授权 |
如果你还在使用 旧版接口,请立即升级迁移到V2版接口上,V1到V2接口迁移指南 将帮助你完成迁移。