简要描述:
访问权限
接口URL:
http://api.zmengzhu.com/business/v1/adver/set |
请求方式:
返回结果格式:
参数:
参数名 |
是否必须 |
类型 |
默认值 |
说明 |
ticket_id |
是 |
int |
0 |
活动ID |
name |
是 |
string |
|
广告组名称 |
content |
是 |
string |
|
广告内容 详细间参数示例 |
返回示例:
响应成功JSON示例:
{
"code": 200,
"msg": "ok",
"data": {}
}
参数示例
接口请求参数 content 完整示例:
[
{
"type":1,"content":"http:\/\/s1.zmengzhu.com\/business\/img\/default-cover.png",
"link":"http:\/\/www.xx.com"},{"type":0,"content":"hello world",
"style":{
"fontSize":"20px","fontColor":"#fff000"
},
"link":"http:\/\/www.xx.com"
}
]
字段说明:
文字广告
键名 |
键值示例 |
类型 |
说明 |
type |
0 |
int |
广告类型 0:文字广告 1:图片广告 |
content |
hello world |
string |
广告展示内容 |
style |
{"fontSize":"20px","fontColor":"#fff000"} |
string |
文字广告特有属性 fontSize:文字大小, fontColor:编辑颜色 |
link |
http://xxx.com |
string |
广告点击跳转地址 |
图片广告
键名 |
键值示例 |
类型 |
说明 |
type |
1 |
int |
广告类型 0:文字广告 1:图片广告 |
content |
http://s1.zmengzhu.com/business/img/default-cover.png |
string |
图片远程可访问完整url 如图片未更新,可直接使用接口返回的相对地址 |
link |
http://xxx.com |
string |
广告点击跳转地址 |
错误时返回:
{
"code": 20001,
"msg": "签名校验失败",
"data": {}
}