# 获取产生过聊天记录的客户 id 列表
建议接入方定时拉取,缓存到本地。
# 请求方式
GET
# 请求地址
https://nbd-api.myscrm.cn/open-nbd-qw-msgaudit/v1/chat/external-user-id/list
# 请求参数
# 示例
https://xxxx.com/xxxx?app_id=xxxx&cursor=xxxx
# 说明
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
app_id | string | 是 | 企微中台应用 id |
last_chat_at | string | 否 | 返回在此之后产生聊天记录的客户,毫秒时间戳,默认为所有 |
cursor | string | 否 | 分页游标,上一次请求返回的 next_cursor,第一页传空 |
# 返回参数
# 示例
{
"errcode": 0,
"errmsg": "ok",
"next_cursor": "xxxx",
"external_userids": ["xx", "xxx", "xasda", "112"]
}
# 说明
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
next_cursor | string | 是 | 下一页游标,当记录数超过一定数量时返回,为空时表示已没有更多数据可获取 |
external_userids | string[] | 是 | 客户 id 列表 |
← 获取指定客户的单聊列表 写入聊天记录 →