friendships/groups/members/add
添加关注用户到好友分组
URL
https://api.weibo.com/2/friendships/groups/members/add.json
支持格式
JSON
HTTP请求方式
POST
是否需要登录
是
关于登录授权,参见 如何登录授权
访问授权限制
访问级别:高级接口(需要授权)
频次限制:是
关于频次限制,参见 接口访问权限说明
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
access_token | true | string | 采用OAuth授权方式为必填参数,OAuth授权后获得。 |
uid | true | int64 | 需要添加的用户的UID。 |
list_id | true | int64 | 好友分组ID,建议使用返回值里的idstr。 |
注意事项
- 好友分组成员上限为500;
- 当前登录用户必须是该分组的创建者,且只能添加自己关注的人;
调用样例及调试工具
返回结果
JSON示例
{ "id": 201111240605269200, "idstr": "201111240605269200", "name": "同事", "mode": "private", "visible": 0, "like_count": 0, "member_count": 3, "description": "", "tags": [], "profile_image_url": "http://tp4.sinaimg.cn/1782515283/50/5610155441/1", "user": { "id": 2489518277, "idstr": "2489518277", "screen_name": "虎贲Geek", "name": "虎贲Geek", "province": "11", "city": "8", "location": "北京 海淀区", "description": "", "url": "", "profile_image_url": "http://tp2.sinaimg.cn/2489518277/50/5617069329/1", "profile_url": "hubengeek", "domain": "hubengeek", "weihao": "", "gender": "m", "followers_count": 25, "friends_count": 141, "statuses_count": 22, "favourites_count": 3, "created_at": "Thu Nov 24 10:27:36 +0800 2011", "following": false, "allow_all_act_msg": false, "geo_enabled": true, "verified": false, "verified_type": -1, "allow_all_comment": true, "avatar_large": "http://tp2.sinaimg.cn/2489518277/180/5617069329/1", "verified_reason": "", "follow_me": false, "online_status": 0, "bi_followers_count": 2, "lang": "zh-cn" }, "created_at": "Thu Nov 24 10:27:36 +0800 2011" }
关于错误返回值与错误代码,参见 错误代码说明
返回字段说明
无
其他
无
相关问题
到 帮助中心 查看更多问题或提问