用户工具

站点工具


侧边栏

聊天记录

评论接口


1、聊天列表

接口名称

chat-records/list

请求方式

get

请求参数

参数名称 参数类型 是否必填 说明
memberId int 会员id
sellerId string 卖家id
messageTypestring消息类型:文本消息 RC:TxtMsg 、 图片消息 RC:ImgMsg 、语音消息 RC:VcMsg 、图文消息 RC:ImgTextMsg 、位置消息 RC:LBSMsg 、添加联系人消息 RC:ContactNtf 、提示条通知消息 RC:InfoNtf 、资料通知消息 RC:ProfileNtf 、通用命令通知消息 RC:CmdNtf 、客服握手消息 RC:HsMsg 、客服挂断消息 RC:SpMsg
startTimestring开始时间
endTimestring结束时间
idint聊天id
pageSizeint每页数量 默认为50
pageint页数

返回值

名称 类型 说明
items data 数据
_links data 分页信息
_meta data 查询数据信息

items数据说明

名称 类型 说明
id int 聊天id
seller_id string卖家
member_id int 会员ID
addtimestring添加时间
cntstring内容
messageTypestring类型

2、添加聊天

接口名称

  chat-records/create

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
memberId int会员id
sellerId string 卖家id
messageTypestring消息类型:文本消息 RC:TxtMsg 、 图片消息 RC:ImgMsg 、语音消息 RC:VcMsg 、图文消息 RC:ImgTextMsg 、位置消息 RC:LBSMsg 、添加联系人消息 RC:ContactNtf 、提示条通知消息 RC:InfoNtf 、资料通知消息 RC:ProfileNtf 、通用命令通知消息 RC:CmdNtf 、客服握手消息 RC:HsMsg 、客服挂断消息 RC:SpMsg
cntstring内容

返回值

名称 类型 说明
result bool 返回结果 success 成功 error 失败
message string 返回信息

3、删除

接口名称

chat-records/delete

请求方式

post

请求参数

参数名称 参数类型 是否必填 说明
memberId int会员id
id int聊天id

返回值

名称 类型 说明
result bool 返回结果 success 成功 error 失败
message string 返回信息

4、回话列表

接口名称

chat-records/chat-list

请求方式

get

请求参数

参数名称 参数类型 是否必填 说明
memberId int 会员id

返回值

名称 类型 说明
id int 聊天id
seller_id string卖家
member_id int 会员ID
addtimestring添加时间
cntstring内容
messageTypestring类型
shop_namestring店铺名称
logostring店铺logo
聊天记录.txt · 最后更改: 2017/06/01 13:59 (外部编辑)