# 关注

# 粉丝列表

列出特定用户的关注者:

GET api/v2/users/:user/followers
1

列出授权用户的关注者:

GET api/v2/user/followers
1

参数

名称 类型 描述
limit Integer 获取条数,默认 20
offset Integer 翻页偏移量,默认 0

响应

Status: 200 OK
1
[
    {
        "id": 1,
        "name": "Seven",
        "bio": "Seven 的个人传记",
        "sex": 2,
        "location": "成都 中国",
        "created_at": "2017-06-02 08:43:54",
        "updated_at": "2017-07-25 03:59:39",
        "following": false,
        "follower": false,
        "avatar": "http://plus.io/api/v2/users/1/avatar",
        "bg": "http://plus.io/storage/user-bg/000/000/000/01.png",
        "verified": null,
        "extra": {
            "user_id": 1,
            "likes_count": 0,
            "comments_count": 8,
            "followers_count": 0,
            "followings_count": 1,
            "updated_at": "2017-08-01 06:06:37",
            "feeds_count": 0,
            "questions_count": 5,
            "answers_count": 3
        }
    }
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# 列出用户正在关注的人

列出一个用户正在关注的人:

GET /users/:user/followings
1

列出用户授权用户正在关注的人

GET /user/followings
1

# 参数

名称 类型 描述
limit Integer 获取条数,默认 20
offset Integer 翻页偏移量,默认 0

# 响应

Status: 200 OK
1
[
    {
        "id": 1,
        "name": "Seven",
        "bio": "Seven 的个人传记",
        "sex": 2,
        "location": "成都 中国",
        "created_at": "2017-06-02 08:43:54",
        "updated_at": "2017-07-25 03:59:39",
        "following": false,
        "follower": false,
        "avatar": "http://plus.io/api/v2/users/1/avatar",
        "bg": "http://plus.io/storage/user-bg/000/000/000/01.png",
        "verified": null,
        "extra": {
            "user_id": 1,
            "likes_count": 0,
            "comments_count": 8,
            "followers_count": 0,
            "followings_count": 1,
            "updated_at": "2017-08-01 06:06:37",
            "feeds_count": 0,
            "questions_count": 5,
            "answers_count": 3
        }
    }
]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# 关注一个用户

PUT /user/followings/:user
1

# 响应

Status: 204 No Content
1

# 取消关注一个用户

DELETE /user/followings/:user
1

# 响应

Status: 204 No Content
1