定时消息添加
接口地址
[接口服务器地址]/api/im/timermsg_save.html
请求方法
POST
Request URL
名称 | 必选 | 说明 |
---|
Request Body
名称 | 必选 | 类型 | 说明 |
---|---|---|---|
sender_id | true | string | 发送用户ID |
sender_name | true | string | 发送用户名称 |
recver_type | true | string | 接收类型 user/group |
recver_id | true | string | 接收ID 多个以逗号分隔 |
recver_name | true | string | 接收名称 user_name/group_name |
msgtype | true | string | 消息类型 text,image,file,voice,shoot,location,app,link |
subject | true | string | 消息标题 |
content | false | string | 消息内容 <a href='/docs/integrate/sendmsg.html' target='_blank'>查看消息内容格式说明</a> |
file | false | file | 文件 当消息类型时 file,image,voice,shoot时,可以由file自动生成content,content为空 |
send_time | true | string | 发送时间 |
调用样例及调试工具
测试接口返回结果(成功)
{"status":1,"code":"0","msg":"","data":""}
注意事项
当消息类型时 file,image,voice,shoot时,可以由file自动生成content