MESSAGE : object

消息

Kind: global namespace

MESSAGE.sendMessage(senderid, receiverid, title, content)

发送站内短信

Kind: static method of MESSAGE

Param Type Description
senderid String 发送者ID
receiverid String 接收者ID
title String 标题
content String 内容

MESSAGE.sendMessageByDept(departmentid, title, content)

根据部门发送站内短信

Kind: static method of MESSAGE

Param Type Description
departmentid String 部门ID
title String 标题
content String 内容

MESSAGE.sendSMS(content, receiver, domainId)

发送手机短信

Kind: static method of MESSAGE

Param Type Description
content String 短信内容
receiver String 接收者电话号码列表,有多个接收者,使用”,”做分隔符
domainId String 企业域id

MESSAGE.sendWeixinRichTextMessage(touser, title, description, url, picUrl, domainId, applicationid)

发送微信图文消息

Kind: static method of MESSAGE
Throws:

  • Exception
Param Type Description
touser String 用户账号列表(消息接收者,多个接收者用‘
title String 消息标题
description String 消息描述
url String 消息url
picUrl String 图片url
domainId String 企业域id
applicationid String 发送目标软件id(null 表示发送到企业小助手)

MESSAGE.sendWeixinTextMessage(touser, content, domainId, applicationid)

发送微信文本消息

Kind: static method of MESSAGE
Throws:

  • Exception
Param Type Description
touser String 用户账号列表(消息接收者,多个接收者用‘
content String 消息内容
domainId String 企业域id
applicationid String 发送目标软件id(null 表示发送到企业小助手)

MESSAGE.sendWeixinMessage(json, domainId)

发送微信消息

Kind: static method of MESSAGE
Throws:

  • Exception
Param Type Description
json String 微信消息(JSON格式 参考微信平台API文档:http://qydev.weixin.qq.com/wiki/index.php?title=%E6%B6%88%E6%81%AF%E7%B1%BB%E5%9E%8B%E5%8F%8A%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F)
domainId String 企业域id

MESSAGE.doSycnFromLanxin() ⇒ Java.JSONObject

蓝信客户端同步数据到本地客户端

Kind: static method of MESSAGE
Returns: Java.JSONObject - 同步结果Java JSON对象

MESSAGE.doSycnToLanxin() ⇒ Java.JSONObject

本地客户端同步数据到蓝信客户端

Kind: static method of MESSAGE
Returns: Java.JSONObject - 同步结果Java JSON对象

MESSAGE.sendLanxinRichTextMessage(touser, title, description, url, picUrl, domainId, applicationid)

发送蓝信图文消息

Kind: static method of MESSAGE
Throws:

  • Exception
Param Type Description
touser String 用户账号列表(消息接收者,多个接收者用‘
title String 消息标题
description String 消息描述
url String 消息url
picUrl String 图片url(必填)
domainId String 企业域id
applicationid String 发送目标软件id(null 表示发送到企业小助手)

MESSAGE.sendLanxinTextMessage(touser, content, domainId, applicationid)

发送蓝信文本消息

Kind: static method of MESSAGE
Throws:

  • Exception
Param Type Description
touser String 用户账号列表(消息接收者,多个接收者用‘
content String 消息内容
domainId String 企业域id
applicationid String 发送目标软件id(null 表示发送到企业小助手)

MESSAGE.sendLanxinMessage(json, domainId)

发送蓝信消息

Kind: static method of MESSAGE
Throws:

  • Exception
Param Type Description
json String 蓝信消息(JSON格式 参考微信平台API文档:http://qydev.weixin.qq.com/wiki/index.php?title=%E6%B6%88%E6%81%AF%E7%B1%BB%E5%9E%8B%E5%8F%8A%E6%95%B0%E6%8D%AE%E6%A0%BC%E5%BC%8F)
domainId String 企业域id

MESSAGE.sendDingdingMessage(title, description, touser, url, doc, type)

钉钉发送消息

Kind: static method of MESSAGE

Param Type Description
title String 标题
description String 内容
touser String 用户钉钉id(没有钉钉id传用户id)
url String 链接地址
doc Document 文档对象
type String 发送类型 oa text link
文档更新时间: 2023-05-29 03:33   作者:admin