发送文件消息
Url
[接口服务器地址]/api/message/send_file.html
Method
POST
Request Headers
Name | 必选 | Type | Description |
---|---|---|---|
Content-Type | true | string | multipart/form-data |
authen | true | string | Authen 什么是认证码 |
appid | true | string | AppID 什么是接入ID |
timestamp | true | string | Timestamp |
uid | true | string | UID |
lang | true | string | Language zh-cn,en-us |
Request Body
Name | 必选 | Type | Description |
---|---|---|---|
file | true | file | 文件 |
sender | true | string | 发送者ID |
recver | true | string | 接收者 用户:json格式 [{"id":"user_id1","name":"用户1"},{"id":"user_id1","name":"用户2"}]; 群组:群组ID |
subject | false | string | 标题 |
duration | false | int | 时长 当视频消息或语音消息时用到 |
Tip
sender或sender_account,recver或recver_account,recver_account格式 ["test1","test2"]
Debug Tool
TestReturn
{"status":1,"code":0,"msg":"","data":""}