(以“{{api_desc_v2| uri=friendships/groups/show| desc=获取某个分组的详细信息| httpMethod=GET| needAuth=是| level={{Api_L2}}| rateLimit=是| params= {{api_args...”为内容创建页面) |
|||
第1行: | 第1行: | ||
{{api_desc_v2| | {{api_desc_v2| | ||
uri=friendships/groups/show| | uri=friendships/groups/show| | ||
− | desc= | + | desc=获取当前登陆用户某个分组的详细信息| |
httpMethod=GET| | httpMethod=GET| | ||
needAuth=是| | needAuth=是| | ||
第7行: | 第7行: | ||
rateLimit=是| | rateLimit=是| | ||
params= | params= | ||
− | {{api_args|list_id|true|int64|需要查询的好友分组ID,建议使用返回值里的idstr。}}| | + | {{api_args|list_id|true|int64|需要查询的好友分组ID,建议使用返回值里的idstr。}} |
+ | | | ||
result= | result= | ||
<pre> | <pre> | ||
{ | { | ||
− | "id": | + | "id": 2210122500120063000, |
− | "idstr": " | + | "idstr": "2210122500120063000", |
− | "name": " | + | "name": "同学", |
"mode": "private", | "mode": "private", | ||
"visible": 0, | "visible": 0, | ||
"like_count": 0, | "like_count": 0, | ||
− | "member_count": | + | "member_count": 41, |
"description": "", | "description": "", | ||
"tags": [], | "tags": [], | ||
− | "profile_image_url": "http:// | + | "profile_image_url": "http://tp3.sinaimg.cn/24767762900/50/5619144918/1", |
"user": { | "user": { | ||
− | "id": | + | "id": 19025380500, |
− | "idstr": " | + | "idstr": "19025380500", |
− | "screen_name": " | + | "screen_name": "张三", |
− | "name": " | + | "name": "张三", |
"province": "11", | "province": "11", | ||
− | "city": " | + | "city": "8", |
− | "location": "北京 | + | "location": "北京 海淀区", |
− | "description": " | + | "description": "做最受尊敬的互联网产品经理...", |
− | "url": " | + | "url": "", |
− | "profile_image_url": "http:// | + | "profile_image_url": "http://tp2.sinaimg.cn/19025380500/50/22817372040/1", |
− | "profile_url": " | + | "profile_url": "304270168", |
− | "domain": " | + | "domain": "zhangsan123", |
− | "weihao": "", | + | "weihao": "3042701600", |
"gender": "m", | "gender": "m", | ||
− | "followers_count": | + | "followers_count": 337, |
− | "friends_count": | + | "friends_count": 534, |
− | "statuses_count": | + | "statuses_count": 516, |
− | "favourites_count": | + | "favourites_count": 60, |
− | "created_at": " | + | "created_at": "Sat Dec 25 14:12:35 +0800 2010", |
"following": false, | "following": false, | ||
− | "allow_all_act_msg": | + | "allow_all_act_msg": true, |
"geo_enabled": true, | "geo_enabled": true, | ||
"verified": false, | "verified": false, | ||
− | "verified_type": | + | "verified_type": 220, |
− | + | ||
"allow_all_comment": true, | "allow_all_comment": true, | ||
− | "avatar_large": "http:// | + | "avatar_large": "http://tp2.sinaimg.cn/19025380500/180/22817372040/1", |
"verified_reason": "", | "verified_reason": "", | ||
"follow_me": false, | "follow_me": false, | ||
"online_status": 0, | "online_status": 0, | ||
− | "bi_followers_count": | + | "bi_followers_count": 185, |
"lang": "zh-cn" | "lang": "zh-cn" | ||
}, | }, | ||
− | "created_at": " | + | "created_at": "Sat Dec 25 14:12:35 +0800 2010" |
} | } | ||
</pre>| | </pre>| | ||
resultDes=无| | resultDes=无| | ||
useAge= | useAge= | ||
− | + | 无 | |
− | + | | | |
otherInfo=无 | otherInfo=无 | ||
}}{{#a:showgrade}} | }}{{#a:showgrade}} |
2012年10月24日 (三) 15:31的版本
friendships/groups/show
获取当前登陆用户某个分组的详细信息
URL
https://api.weibo.com/2/friendships/groups/show.json
支持格式
JSON
HTTP请求方式
GET
是否需要登录
是
关于登录授权,参见 如何登录授权
访问授权限制
访问级别:高级接口(需要授权)
频次限制:是
关于频次限制,参见 接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
access_token | true | string | 采用OAuth授权方式为必填参数,OAuth授权后获得。 |
list_id | true | int64 | 需要查询的好友分组ID,建议使用返回值里的idstr。 |
注意事项
无
调用样例及调试工具
返回结果
JSON示例
{ "id": 2210122500120063000, "idstr": "2210122500120063000", "name": "同学", "mode": "private", "visible": 0, "like_count": 0, "member_count": 41, "description": "", "tags": [], "profile_image_url": "http://tp3.sinaimg.cn/24767762900/50/5619144918/1", "user": { "id": 19025380500, "idstr": "19025380500", "screen_name": "张三", "name": "张三", "province": "11", "city": "8", "location": "北京 海淀区", "description": "做最受尊敬的互联网产品经理...", "url": "", "profile_image_url": "http://tp2.sinaimg.cn/19025380500/50/22817372040/1", "profile_url": "304270168", "domain": "zhangsan123", "weihao": "3042701600", "gender": "m", "followers_count": 337, "friends_count": 534, "statuses_count": 516, "favourites_count": 60, "created_at": "Sat Dec 25 14:12:35 +0800 2010", "following": false, "allow_all_act_msg": true, "geo_enabled": true, "verified": false, "verified_type": 220, "allow_all_comment": true, "avatar_large": "http://tp2.sinaimg.cn/19025380500/180/22817372040/1", "verified_reason": "", "follow_me": false, "online_status": 0, "bi_followers_count": 185, "lang": "zh-cn" }, "created_at": "Sat Dec 25 14:12:35 +0800 2010" }
关于错误返回值与错误代码,参见 错误代码说明
返回字段说明
无
其他
无
相关问题
{{{relat_qa}}}
到 帮助中心 查看更多问题或提问