接口地址
http://47.96.254.180:8000/api/message/getRoamingMsgList.html
请求参数
名称 | 必选 | 类型 | 说明 |
---|---|---|---|
ssid | true | string | 企业ID,什么是企业ID |
uid | true | string | 用户ID |
app_id | true | string | 接入商ID,什么是接入商ID |
authen | true | string | 认证码 ,如何生成认证码 |
msg_type | true | int | 消息类型 1:用户 2:群(讨论组) |
my_user_id | false | string | 我的用户id,查询消息是用户消息时必填 |
opposing_user_id | false | string | 对方的用户id,查询消息是用户消息时必填 |
group_id | false | string | 群组id,查询消息是群组消息时必填 |
datetime | false | string | 时间 例:2017-11-13 |
month | false | string | 当前年月 例:201711 当不指定具体日期时年月必填 |
contents | false | string | 聊天内容 |
page | false | int | 查询消息所在页码 |
limit | false | int | 每页显示条数 默认10条 |
调用样例及调试工具
测试地址返回结果(成功)
{"status":1,"data":{"count":"234","data":[{"gid":"B57FD1A1-1C5C-11E8-A470-000C29B0CDE4","create_time":"1510212009832280","contents":"你好","attachment":"https:\/\/picsum.photos\/200","send_user_id":"101"},{"gid":"B57FD1A1-1C5C-11E8-A470-000C29B0CDE4","create_time":"1510212009832280","contents":"你好","attachment":"https:\/\/picsum.photos\/200","send_user_id":"101"}]},"err_code":0,"err_msg":""}
注意事项
1. attachment:附件地址
2. contents:消息内容,消息是附件时取附件名