简要描述:

  • 获取关注和粉丝信息

请求域名:

  • http://xx.com

请求URL:

POST/&route=plugin.micro-communities.api.user.getFollowFans

参数:

参数名 是否必须 类型 说明
userType int 1-粉丝 2-关注
member int 会员ID,查看其他人时传递
keyword string 搜索关键字 (搜昵称)

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 1,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 1,
        "data": [
            {
                "user_id": 18,
                "attention_id": 84,
                "has_one_follow_user": {
                    "uid": 84,
                    "nickname": "12345678922",
                    "avatar": "http://test-1251768088.cosgz.myqcloud.com/images/3/2018/04/PQ40SOu6jSoWL90I1Iup0Kttw1izoF.jpg",
                    "signature": null
                },
				"is_mutual": 1
            }
        ]
    }
}

错误时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "total": 0,
        "per_page": 15,
        "current_page": 1,
        "last_page": 1,
        "next_page_url": null,
        "prev_page_url": null,
        "from": 1,
        "to": 1,
        "data": []
    }
}

返回参数说明:

参数名 类型 说明
user_id int 关注者ID
attention_id int 被关注者ID
nickname string 会员名称
avatar string 头像
signature string 简介
is_mutual string 1-互相关注 0-单方面关注