============= 官方主页: http://developer.gobelieve.io 文档地址: http://developer.gobelieve.io/static/docs/im/Server.html
-
请求地址:** POST /auth/customer **
-
是否认证:否
-
请求内容:
{ "appid":"应用id(整型)", "customer_id":"顾客id", "name":"用户名称", "avatar":"头像url", "platform_id":"平台id,1:ios, 2:android, 3:web(可选)", "device_id":"设备id(可选)" }
-
成功响应:200
{ "token":"访问token", "store_id":"咨询台id", "client_id":"客户id" }
-
操作失败: 400 非法参数
-
请求地址:** GET /supporters?store_id=咨询台id **
-
是否认证:客户端认证
-
请求参数: store=(可选)
-
成功响应:200
{ "seller_id":"客服id", "name":"客服名称", "avatar":"客服头像", "status":"客服状态 online/offline" }
-
操作失败: 400 非法参数
-
请求地址:** GET /messages/offline **
-
是否认证:服务器认证
-
请求参数: customer_id=&platform_id=(可选)&device_id=(可选)
-
成功响应:200
{ "new":"1或者0" }
-
操作失败: 400 非法参数
-
请求地址:** GET /messages **
-
是否认证:客户端认证
-
请求参数: store=(可选)
-
成功响应:200
[ { "id":"消息id", "content":"消息内容", "timestamp":"消息时间" } ... ]
-
操作失败: 400 非法参数