获取使用者

优质
小牛编辑
124浏览
2023-12-01

获取使用者列表

请求方式: GET

请求地址: https://open.qingtui.cn/v1/app/followers?access_token=ACCESS_TOKEN&page_size=PAGE_SIZE&request_page=REQUEST_PAGE

参数说明:

参数必须说明
access_token接口调用凭证
page_size请求页面数量
request_page请求的页码,从1开始

正确返回结果示例:

{
    "followers": [
        "29360122605a242138eae88bc4770",
        "106a6c68630e0403cb6c9708c15de",
        "1c5840df7330b498fb71414e31a33",
        "b810f24928830413da0cd9d167212",
        "584a483298834005f95848a31ddc4"
    ],
    "hasMore": false,
    "totalCount": 5
}

出错返回结果示例:

{
    "errcode": 45020,
    "errmsg": "request_page must be an integer greater than or equal to 1"
}

参数说明:

参数说明
followers使用者的openid列表
hasMore是否还有更多的数据
totalCount使用者总数量
errcode错误代号
errmsg错误信息

通过userid获取openid

请求方式: GET

请求地址https://open.qingtui.cn/team/member/openid/get?access_token=ACCES_TOKEN&user_id=USER_ID

参数说明:

参数必须说明
access_token接口调用凭证
user_id企业内用户id

正确返回结果示例:

{
    "open_id": "fd3d8fb00a7a40ab810f249288"
}

出错返回结果示例:

{
    "errcode": 46001,
    "errmsg": "user is not exists"
}

参数说明:

参数说明
open_id用户使用轻应用生成的唯一id
errcode错误代号
errmsg错误信息

备注:

  1. 仅能获取当前企业内部轻应用的使用用户的openid