简要描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期
1.0.0 kevin 2021-08-14

请求URL:

  • ws://xx.com

请求方式:

  • websocket

请求头:

参数名 是否必须 类型 说明

请求参数:

参数名 是否必须 类型 说明
link_type string ws
module string unionchat
device_type string 设备类型【app=,pc=PC端,h5=移动端,desktop=桌面端】
action string getCustomerServiceV2
token string 登录凭证
key string 客服key

返回示例:

正确时返回:

{
    action: "getCustomerService"
    data: {
        avatar: "https://unionchat.unioncms.cn/uploads/preview/user/avatar/2021/08/12/6114bc50043a2.png"
        nickname: "客服001"
        uid: 13
    }
    msg: "获取成功"
    status: 200
}

错误时返回:

{
    action: "getCustomerService"
    data: []
    msg: "目前客服繁忙,请稍后再试"
    status: 0
}

返回参数说明:

参数名 类型 说明

备注:

文档更新时间: 2021-10-18 15:32   作者:admin