WorkPro 手册

接口地址

[接口服务器地址]/api/message/send_msg_formview.html

发送消息(formview)

参数 数据类型 参数类型 说明
Content-Type application/json; charset=UTF-8 string header
authen string header 认证码
appid string header 接入ID
timestamp string header 时间戳
uid string header 当前帐号
lang string header 语言
body string body

请求内容

{
  • recver: [
    1. {
      • id: "2",
      • name: "用户2",
      • role: 2
      }
    ],
  • ctype: "3",
  • refer: {
    • id: "app1",
    • name: "app1",
    • avatar: "https://gss0.bdstatic.com/7Ls0a8Sm1A5BphGlnYG/sys/portrait/item/58f4baecc9abc1d4c8cb676578696e4627.jpg"
    },
  • flag: "2",
  • content: "待办内容",
  • extdata: {
    • header: [
      1. {
        • title: "取件通知"
        },
      2. {
        • title: "2016-1-1 12:12:12",
        • color: "#999999",
        • size: "s"
        }
      ],
    • body: [
      1. {
        • title: "亲,你的快递已到"
        },
      2. {
        • label: "取件码",
        • title: "111111"
        },
      3. {
        • label: "快递公司",
        • title: "申通快递"
        }
      ],
    • footer: {
      • title: "查看详情"
      },
    • target: {
      • url_mobile: "http://www.baidu.com",
      • url_pc: "http://www.baidu.com",
      • opentype: "1"
      },
    • obj: {
      • type: "oa",
      • id: "1111",
      • s_type: "",
      • create_uid: ""
      }
    }
}
*注意事项 target.opentype 打开类型 1:内置浏览器(默认) 2:系统浏览器
recver或recver_account,recver_account格式 ["test1","test2"],
recver中的 role 可选,默认1为待办处理者,2是抄送者
obj.s_type 可选 是待办的二级分类
obj.create_uid 创建者,如果不传取当前用户
content,如果flag=8是待办的内容
返回

返回结果