POST https://xxx
Content-Type: application/json| 请求参数名 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| chat_id | string | 会话ID | true |
| send_time | int64 | 发送时间戳,单位:ms | true |
| msg_type | int32 | 消息类型。0 文本,1 图片,2 语音,3 文件,4 视频,7 位置,9 链接 | |
| true | |||
| content | string | 文本消息内容 | false |
| file_url | int32 | 资源地址。图片、语音、文件、视频类型消息需要 | false |
| location | object | 地理位置 | false |
| location.name | string | 位置名称 | false |
| location.address | string | 详细地址 | false |
| location.latitude | float32 | 维度 | false |
| location.longitude | float32 | 经度 | false |
| link | object | 链接 | false |
| link.title | string | 标题 | false |
| link.desc | string | 描述 | false |
| link.url | string | 链接地址 | false |
| link.thumb_url | string | 封面图 | false |
json - Request-Example:{
"chat_id": "chat_xxxx",
"send_time": 1615478585000,
"msg_type": 0,
"content": "文本消息",
"file_url": "http://xxx.png",
"location": {
"name": "测试地址",
"address": "测试地址",
"latitude": 0,
"longitude": 0
},
"link": {
"title": "标题",
"desc": "描述",
"url": "https://www.xxx.com",
"thumb_url": "https://xxx.png"
}
}
| 响应参数名 | 类型 | 说明 |
|---|---|---|
| code | int32 | 响应码 |
| msg | string | 消息提示 |
{
"code": 0,
"msg": "success"
} {
"code": 4126,
"msg": "",
}