# 获取渠道活码信息

请求方式:POST

请求地址:https://$basehost/gateway/eaopen/GetChannelLiveByStateCode

body参数

{
  "state_code": "xxxx"
}
字段 类型 必填 说明
state_code string 状态码

返回值:

{
    "data": {
        "channel_live_name": "渠道活码名称",
        "qr_code_url": "渠道活码链接",
        "channel_name": "渠道名"
    },
    "errcode": 0,
    "errmsg": "",
    "hint": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
   channel_live_name string 渠道活码名称
   qr_code_url string 渠道活码(二维码) 链接
   channel_name string 渠道名
hint string 请求日志ID

完整请求示例:

curl -X POST https://$basehost/gateway/eaopen/GetChannelLiveByStateCode \
     -H 'Content-Type: application/json; charset=UTF-8' \
     -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
     -d '{
 "state_code": "xxxx"
}'
最后更新时间: 2023/5/24 10:48:59