跳转到: 导航, 搜索

friendships/groups/follow

对好友分组加关注

URL

https://api.weibo.com/2/friendships/groups/follow.json

支持格式

JSON

HTTP请求方式

POST

是否需要登录


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

访问授权限制

访问级别:高级接口(需要授权)
频次限制:
关于频次限制,参见 接口访问权限说明

请求参数

  必选 类型及范围 说明
access_token true string 采用OAuth授权方式为必填参数,OAuth授权后获得。
list_id true int64 要关注的好友分组ID,建议使用返回值里的idstr。
uid false int64 好友分组的所有者UID,默认不填为当前登录用户。

注意事项

  • 只能关注用户可见的分组;
  • 每个用户只能对同一个分组关注一次;

调用样例及调试工具

API测试工具

返回结果

JSON示例

{
    "id": 3404979794629010,
    "idstr": "3404979794629010",
    "name": "同事",
    "mode": "private",
    "visible": 0,
    "like_count": 0,
    "member_count": 0,
    "description": "",
    "tags": [],
    "profile_image_url": "http://tp1.sinaimg.cn/1404376560/50/5629870687/1",
    "user": {
        "id": 1404376560,
        "idstr": "1404376560",
        "screen_name": "zaku",
        "name": "zaku",
        "province": "11",
        "city": "5",
        "location": "北京 朝阳区",
        "description": "微博开放平台产品。人生五十年,乃如梦如幻;有生斯有死,壮士复何憾。",
        "url": "http://blog.sina.com.cn/zaku",
        "profile_image_url": "http://tp1.sinaimg.cn/1404376560/50/5629870687/1",
        "profile_url": "zaku",
        "domain": "zaku",
        "weihao": "",
        "gender": "m",
        "followers_count": 1440,
        "friends_count": 604,
        "statuses_count": 3543,
        "favourites_count": 14,
        "created_at": "Fri Aug 28 00:00:00 +0800 2009",
        "following": false,
        "allow_all_act_msg": false,
        "geo_enabled": true,
        "verified": false,
        "verified_type": -1,
        "status_id": 3453143964431400,
        "allow_all_comment": true,
        "avatar_large": "http://tp1.sinaimg.cn/1404376560/180/5629870687/1",
        "verified_reason": "",
        "follow_me": false,
        "online_status": 0,
        "bi_followers_count": 286,
        "lang": "zh-cn"
    },
    "created_at": "Mon Jan 23 12:45:05 +0800 2012"
}

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

返回字段说明

其他

相关问题

{{{relat_qa}}}


帮助中心 查看更多问题或提问


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




文档更新时间: 2012-06-04
api评价