发送消息(formview)
Url
[接口服务器地址]/api/message/send_msg_formview.html
Method
POST
Request Headers
Name | 必选 | Type | Description |
---|---|---|---|
Content-Type | true | string | application/json; charset=UTF-8 |
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 |
---|---|---|---|
recver | true | json | 接收者 用户:json格式 [{"id":"user_id1","name":"用户1"},{"id":"user_id2","name":"用户2"}] |
ctype | false | string | 会话类型 0 单聊 1 群组(当群组时 recver为字符串,群组ID) 3 应用 |
refer | false | string | 参考者 2 强通知 |
flag | false | string | 标志 2 强通知 8 到待办箱 |
content | false | string | 内容 将关键字放这里,可以用来搜索 |
extdata | false | json | 扩展数据 |
Tip
target.opentype 打开类型 1:内置浏览器(默认) 2:系统浏览器
recver或recver_account,recver_account格式 ["test1","test2"],
recver中的 role 可选,默认1为待办处理者,2是抄送者
obj.s_type 可选 是待办的二级分类
obj.create_uid 创建者,如果不传取当前用户
content,如果flag=8是待办的内容
Debug Tool
TestReturn
{"status":1,"code":0,"msg":"","data":""}