API文档 V2

跳转到: 导航, 搜索
第51行: 第51行:
 
*[[2/statuses/friends_timeline|statuses/friends_timeline]] 获取当前登录用户及其所关注用户的最新微博
 
*[[2/statuses/friends_timeline|statuses/friends_timeline]] 获取当前登录用户及其所关注用户的最新微博
 
*[[2/statuses/home_timeline|statuses/home_timeline]] 获取当前登录用户及其所关注用户的最新微博
 
*[[2/statuses/home_timeline|statuses/home_timeline]] 获取当前登录用户及其所关注用户的最新微博
 +
*[[2/statuses/friends_timeline/ids|statuses/friends_timeline/ids]] 获取当前登录用户及其所关注用户的最新微博的ID
 
*[[2/statuses/user_timeline|statuses/user_timeline]] 获取用户发布的微博
 
*[[2/statuses/user_timeline|statuses/user_timeline]] 获取用户发布的微博
 +
*[[2/statuses/user_timeline/ids|statuses/user_timeline/ids]] 获取用户发布的微博的ID
 
*[[2/statuses/repost_timeline|statuses/repost_timeline]] 返回一条原创微博的最新转发微博
 
*[[2/statuses/repost_timeline|statuses/repost_timeline]] 返回一条原创微博的最新转发微博
 +
*[[2/statuses/repost_timeline/ids|statuses/repost_timeline/ids]] 获取一条原创微博的最新转发微博的ID
 
*[[2/statuses/repost_by_me|statuses/repost_by_me]] 返回用户转发的最新微博
 
*[[2/statuses/repost_by_me|statuses/repost_by_me]] 返回用户转发的最新微博
 
*[[2/statuses/mentions|statuses/mentions]] 获取@当前用户的最新微博
 
*[[2/statuses/mentions|statuses/mentions]] 获取@当前用户的最新微博
 +
*[[2/statuses/mentions/ids|statuses/mentions/ids]] 获取@当前用户的最新微博的ID
 +
*[[2/statuses/bilateral_timeline|statuses/bilateral_timeline]] 获取双向关注用户的最新微博
 
*[[2/statuses/show|statuses/show]] 根据ID获取单条微博信息
 
*[[2/statuses/show|statuses/show]] 根据ID获取单条微博信息
 
*[[2/statuses/querymid|statuses/querymid]] 通过id获取mid
 
*[[2/statuses/querymid|statuses/querymid]] 通过id获取mid
第62行: 第67行:
 
*[[2/statuses/hot/comments_daily|statuses/hot/comments_daily]] 按天返回热门评论榜
 
*[[2/statuses/hot/comments_daily|statuses/hot/comments_daily]] 按天返回热门评论榜
 
*[[2/statuses/hot/comments_weekly|statuses/hot/comments_weekly]] 按周返回热门评论榜
 
*[[2/statuses/hot/comments_weekly|statuses/hot/comments_weekly]] 按周返回热门评论榜
 +
*[[2/statuses/count|statuses/count]] 批量获取指定微博的转发数评论数
  
 
===写入接口===
 
===写入接口===
第92行: 第98行:
 
*[[2/users/show|users/show]] 获取用户信息
 
*[[2/users/show|users/show]] 获取用户信息
 
*[[2/users/domain_show|users/domain_show]] 通过个性域名获取用户信息
 
*[[2/users/domain_show|users/domain_show]] 通过个性域名获取用户信息
 +
*[[2/users/counts|users/counts]] 批量获取用户的粉丝数、关注数、微博数
  
  
第130行: 第137行:
  
 
===写入接口===
 
===写入接口===
 +
*[[2/account/end_session|account/end_session]] 退出登录
 
*[[2/account/profile/basic_update|account/profile/basic_update]] 更新用户基本信息 {{Icon_adv}}
 
*[[2/account/profile/basic_update|account/profile/basic_update]] 更新用户基本信息 {{Icon_adv}}
 
*[[2/account/profile/edu_update|account/profile/edu_update]] 更新用户教育信息 {{Icon_adv}}
 
*[[2/account/profile/edu_update|account/profile/edu_update]] 更新用户教育信息 {{Icon_adv}}
第142行: 第150行:
 
===读取接口===
 
===读取接口===
 
*[[2/favorites|favorites]] 获取当前用户的收藏列表
 
*[[2/favorites|favorites]] 获取当前用户的收藏列表
 +
*[[2/favorites/ids|favorites/ids]] 获取当前用户的收藏列表的ID
 
*[[2/favorites/show|favorites/show]] 获取单条收藏信息
 
*[[2/favorites/show|favorites/show]] 获取单条收藏信息
 
*[[2/favorites/by_tags|favorites/by_tags]] 获取当前用户某个标签下的收藏列表
 
*[[2/favorites/by_tags|favorites/by_tags]] 获取当前用户某个标签下的收藏列表
 
*[[2/favorites/tags|favorites/tags]] 当前登录用户的收藏标签列表
 
*[[2/favorites/tags|favorites/tags]] 当前登录用户的收藏标签列表
 +
*[[2/favorites/by_tags/ids|favorites/by_tags/ids]] 获取当前用户某个标签下的收藏列表的ID
  
 
===写入接口===
 
===写入接口===
第159行: 第169行:
 
*[[2/trends|trends]] 获取某人话题
 
*[[2/trends|trends]] 获取某人话题
 
*[[2/trends/is_follow|trends/is_follow]] 是否关注某话题
 
*[[2/trends/is_follow|trends/is_follow]] 是否关注某话题
 +
*[[2/trends/statuses|trends/statuses]] 获取某一话题下的微博
 
*[[2/trends/hourly|trends/hourly]] 返回最近一小时内的热门话题
 
*[[2/trends/hourly|trends/hourly]] 返回最近一小时内的热门话题
 
*[[2/trends/daily|trends/daily]] 返回最近一天内的热门话题
 
*[[2/trends/daily|trends/daily]] 返回最近一天内的热门话题
第206行: 第217行:
 
*[[2/suggestions/users/may_interested|suggestions/users/may_interested]] 获取用户可能感兴趣的人
 
*[[2/suggestions/users/may_interested|suggestions/users/may_interested]] 获取用户可能感兴趣的人
 
*[[2/suggestions/users/by_status|suggestions/users/by_status]] 根据微博内容推荐用户
 
*[[2/suggestions/users/by_status|suggestions/users/by_status]] 根据微博内容推荐用户
 +
*[[2/suggestions/statuses/hot|suggestions/statuses/hot]] 获取微博精选推荐
 +
*[[2/suggestions/statuses/reorder|suggestions/statuses/reorder]] 主Feed微博按兴趣推荐排序
 +
*[[2/suggestions/statuses/reorder/ids|suggestions/statuses/reorder/ids]] 主Feed微博按兴趣推荐排序的微博ID
 
*[[2/suggestions/favorites/hot|suggestions/favorites/hot]] 热门收藏
 
*[[2/suggestions/favorites/hot|suggestions/favorites/hot]] 热门收藏
  
 
===写入接口===
 
===写入接口===
 
*[[2/suggestions/users/not_interested|suggestions/users/not_interested]] 不感兴趣的人
 
*[[2/suggestions/users/not_interested|suggestions/users/not_interested]] 不感兴趣的人
 +
 +
 +
==公共服务==
 +
===读取接口===
 +
*[[2/common/code_to_location|common/code_to_location]] 通过地址编码获取地址名称
 +
*[[2/common/get_city|common/get_city]] 获取城市列表
 +
*[[2/common/get_province|common/get_province]] 获取省份列表
 +
*[[2/common/get_country|common/get_country]] 获取国家列表
 +
*[[2/common/get_timezone|common/get_timezone]] 获取时区配置表
  
  
 
==地理信息==
 
==地理信息==
 +
===基础位置读取接口===
 +
*[[2/location/base/get_map_image|location/base/get_map_image]] 生成一张静态的地图图片
 +
 
===坐标转换接口===
 
===坐标转换接口===
 
*[[2/location/geo/ip_to_geo|location/geo/ip_to_geo]] 根据IP地址返回地理信息坐标
 
*[[2/location/geo/ip_to_geo|location/geo/ip_to_geo]] 根据IP地址返回地理信息坐标
第219行: 第245行:
 
*[[2/location/geo/gps_to_offset|location/geo/gps_to_offset]] 根据GPS坐标获取偏移后的坐标
 
*[[2/location/geo/gps_to_offset|location/geo/gps_to_offset]] 根据GPS坐标获取偏移后的坐标
 
*[[2/location/geo/is_domestic|location/geo/is_domestic]] 判断地理信息坐标是否是国内坐标
 
*[[2/location/geo/is_domestic|location/geo/is_domestic]] 判断地理信息坐标是否是国内坐标
 +
 +
===POI数据读取接口===
 +
*[[2/location/pois/show_batch|location/pois/show_batch]] 批量获取POI点的信息
 +
*[[2/location/pois/search/by_location|location/pois/search/by_location]] 根据关键词按地址位置获取POI点的信息
 +
*[[2/location/pois/search/by_geo|location/pois/search/by_geo]] 根据关键词按坐标点范围获取POI点的信息
 +
*[[2/location/pois/search/by_area|location/pois/search/by_area]] 根据关键词按矩形区域获取POI点的信息
 +
 +
===POI数据写入接口===
 +
*[[2/location/pois/add|location/pois/add]] 提交一个新增的POI点信息
 +
 +
===移动服务读取接口===
 +
*[[2/location/mobile/get_location|location/mobile/get_location]] 根据移动基站WIFI等数据获取当前位置信息
 +
 +
===交通路线读取接口===
 +
*[[2/location/line/drive_route|location/line/drive_route]] 根据起点与终点数据查询自驾车路线信息
 +
*[[2/location/line/bus_route|location/line/bus_route]] 根据起点与终点数据查询公交乘坐路线信息
 +
*[[2/location/line/bus_line|location/line/bus_line]] 根据关键词查询公交线路信息
 +
*[[2/location/line/bus_station|location/line/bus_station]] 根据关键词查询公交站点信息
 +
  
  

2011年12月1日 (四) 10:54的版本

注:点击回到旧版接口文档


标识为“高”的接口为高级权限接口,需要申请才可以调用,申请方式请见高级接口申请


微博

读取接口

写入接口


评论

读取接口

写入接口


用户

读取接口


关系

关注读取接口

粉丝读取接口

关系链读取接口

关系状态读取接口

写入接口


账号

读取接口

写入接口


收藏

读取接口

写入接口


话题

读取接口

写入接口


标签

读取接口

写入接口


注册

读取接口


搜索

搜索联想接口

搜索内容接口

搜索用户接口


推荐

读取接口

写入接口


公共服务

读取接口


地理信息

基础位置读取接口

坐标转换接口

POI数据读取接口

POI数据写入接口

移动服务读取接口

交通路线读取接口


OAuth 2.0接口(V2版接口将仅支持OAuth 2.0授权方式)