# sendMessage
调用Link发送消息。
# 输入
继承标准对象输入,扩展属性描述
| 名称 | 数据类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
| toCompany | string | 是 | 接收方的公司编码 | |
| toType | string | 是 | 接收方的类型 | |
| toId | string | 是 | 接收方的用户id | |
| toName | string | 是 | 接收方的姓名 | |
| msgType | string | 是 | 消息类型 | |
| content | string | 是 | 消息内容 |
# 输出
继承标准对象输出,无扩展属性
# 示例代码
app.link.sendMessage('EACFK',
'1',
'43b80351-2c0a-4e84-a3d0-43eb7d35bc00',
'张三',
'1',
'这是一条测试消息。'
);