1. 获取云助手活动内容
请求包结构
{
"platform": "@platform",
"__language__":"zh-CN",
"tenant_id": "@tenant_id",
"version_name": "3.1.5",
"wzs_user_id": "@wzs_user_id"
}
参数 |
类型 |
描述 |
__language__ |
string |
当前语言 |
version_name |
string |
云助手APP版本号 |
platform |
number |
平台1-ios;2-Android |
tenant_id |
string |
租户id |
wzs_user_id |
string |
云助手用户ID |
返回结果
//没有活动
{
"data": {
"code": 1,
"message": "不存在活动"
},
"success": 1
}
//有活动
{
"data": {
"code": 1,
"config": {
"active_time": 1243120,
"activity_id": "123123",
"deadline": 1242123123,
"description": "活动描述",
"open_url": "http://xxx/yyy",
"pic_url": "http://xxx/yyy",
"share_type": 0,
"title": "活动标题"
},
"message": ""
},
"success": 1
}
参数 |
类型 |
描述 |
code |
number |
当前接口逻辑结果1-成功;非1-错误 |
message |
string |
提示信息 |
success |
number |
接口请求成功 |
config |
object |
如果config为空,或者没有config字段,表示当前没有配置任何活动 |
active_time |
number |
活动生效起始时间 |
activity_id |
string |
活动唯一标识 |
deadline |
number |
活动过期时间 |
description |
string |
活动描述 |
open_url |
string |
活动跳转链接 |
pic_url |
string |
活动图片的url |
share_type |
number |
0-允许所有分享;1-不允许分享;2-允许云助手分享;默认值为1;0,1,2,的取值与分享插件中的type保持一致 |
title |
string |
活动标题 |