C/2/friendships/show/biz

跳转到: 导航, 搜索
(以“{{Api_desc_business| uri=friendships/show/biz| desc=获取两个用户之间的详细关注关系情况| httpMethod=GET| needAuth=是| level={{Api_L1}}| rateLimit=...”为内容创建页面)
 
 
(未显示1个用户的2个中间版本)
第1行: 第1行:
 
{{Api_desc_business|
 
{{Api_desc_business|
 
uri=friendships/show/biz|
 
uri=friendships/show/biz|
desc=获取两个用户之间的详细关注关系情况|
+
desc=获取当前登录用户与其他用户之间的详细关注关系情况|
 
httpMethod=GET|
 
httpMethod=GET|
 
needAuth=是|
 
needAuth=是|
 
level={{Api_L1}}|
 
level={{Api_L1}}|
 
rateLimit=是|
 
rateLimit=是|
params={{api_args|source_id|false|int64|源用户的UID。}}
+
params={{api_args|target_id|false|int64|目标用户的UID。}}
{{api_args|source_screen_name|false|string|源用户的微博昵称。}}
+
{{api_args|target_id|false|int64|目标用户的UID。}}
+
 
{{api_args|target_screen_name|false|string|目标用户的微博昵称。}}|
 
{{api_args|target_screen_name|false|string|目标用户的微博昵称。}}|
 
apiToolPara=key1=source_id&value1=1904178193&key2=target_screen_name&value2=微博API|
 
apiToolPara=key1=source_id&value1=1904178193&key2=target_screen_name&value2=微博API|
第32行: 第30行:
 
</pre>|
 
</pre>|
 
resultDes=无|
 
resultDes=无|
useAge=*参数source_id与source_screen_name二者必选其一,且只能选其一
+
useAge= *参数target_id与target_screen_name二者必选其一,且只能选其一 |
*参数target_id与target_screen_name二者必选其一,且只能选其一 |
+
 
otherInfo=无
 
otherInfo=无
 
}}{{#a:showgrade}}
 
}}{{#a:showgrade}}

2018年8月27日 (一) 14:50的最后版本

friendships/show/biz

获取当前登录用户与其他用户之间的详细关注关系情况

URL

https://c.api.weibo.com/2/friendships/show/biz.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录


关于登录授权,参见 如何登录授权

访问授权限制


请求参数

  必选 类型及范围 说明
source false string 采用OAuth授权方式不需要此参数,其他授权方式为必填参数,数值为应用的AppKey。
access_token false string 采用OAuth授权方式为必填参数,其他授权方式不需要此参数,OAuth授权后获得。
target_id false int64 目标用户的UID。
target_screen_name false string 目标用户的微博昵称。

注意事项

  • 参数target_id与target_screen_name二者必选其一,且只能选其一

返回结果

JSON示例

{
    "target": {
        "id": 1418348195,
        "screen_name": "zaku",
        "followed_by": false,
        "following": false,
        "notifications_enabled": false
    },
    "source": {
        "id": 1734528095,
        "screen_name": "檀木幻想",
        "followed_by": false,
        "following": false,
        "notifications_enabled": false
    }
}

关于错误返回值与错误代码,参见 错误代码说明

字段说明

其他



Language: [[{{{2/uri}}}|中文]]


文档更新时间: 2018-08-27
api评价