聆客开放平台

# sendInviteMessage

发送邀约消息。(linkx暂不支持)

# 输入

继承标准对象输入,扩展属性描述

名称 数据类型 必填 默认值 描述
params Object json对象,详情见params参数说明

params参数说明:

名称 数据类型 必填 默认值 描述
toId string 发送邀约消息对象id,要看toType是什么类型
toType int 0系统1私聊2群组4部门5服务号
title string 邀约标题
desc string 邀约内容
action_params string 操作指令

# 输出

继承标准对象输出,无扩展属性

# 示例代码

app.link.startContactSingleSelector(
        result => {
            app.link.sendInviteMessage({
                toId: result.id,
                toType: example_toType,
                title: '百度',
                desc: '百度一下,你就知道',
                action_params: '[OpenUrl]\nurl=https://www.baidu.com'
              });
    },
    error => {
        bui.alert(error);
    },
    '请选择用户或者群组',
    '3'
);