获取会议二维码

1. 接口描述

接口名称:

/eventopenapi/event/getqrcode

发送方式:

POST

参数格式:

accept: application/json;content-type: application/json

2. 输入参数

参数 类型 必须 说明
token String 统一鉴权token
eventId Long 直播会议ID
liveRole Int 会议角色(默认值0)
qrCodeType Int 二维码类型 1: 微信二维码; 2: 普通二维码(默认值1)
qrCodeInfo JSON 二维码信息
  • 标准活动且支持直播类型的会议,才可以获取观众角色的微信二维码

qrCodeInfo 参数

参数 类型 必须 说明
width Int 二维码的宽度,最小280,最大1280(默认值430,单位 px)

3. 输出参数

参数 类型 说明
timeStamp Long 返回时间(时间戳,单位毫秒)
requestId String 请求ID(在接口异常时, 需提供请求ID)
code Int 返回的状态码
msg String 当返回结果的状态码不为200时,包含的错误信息
data Json 返回数据

data 参数说明

参数 类型 说明
eventId Long 直播会议ID
liveRole Int 观众角色
qrCodeType Int 二维码类型
qrCodeInfo JSON 二维码信息
qrCodeBase64 String 全时小程序二维码, base64加密后的字符串

4. 示例

输入示例

{
    "token":"5d41c4ac806c6440eb6aa8e071115f2b",
    "eventId": 569358,
    "qrCodeInfo":{"width":280}
}

输出示例

{
    "timeStamp": 1655964916393,
    "code": 200,
    "msg": "Successfully to get the event info!",
    "data": {
        "eventId": 569358,
        "qrCodeBase64":"data:image/jpg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAEYARgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLQ1XULy9urq9vJ5XlnYBljVEUooA97ooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAP/Z",
    },
    "requestId": "172.10.85.87_20220623_141516_1655964916356"
}