新建或更新台标
服务地址
http://api-az-cn.danghongyun.com/rest
请求方法
POST
请求参数
参数 | 说明 | 类型 | 是否必须 |
---|---|---|---|
accessKey | 访问API用的accessKey | String | 必选 |
action | API名称,此接口为 "logoGroup" | String | 必选 |
version | API版本,目前必须为2.0 | String | 必选 |
timestamp | API调用时间戳,1970年1月1日以来的毫秒数,如1466488681033 | String | 必选 |
signature | 签名,请参考签名规则 | String | 必选 |
id | 台标组id,不传该参数时为增加台标组,传该参数的时候为修改对应台标组 | String | 可选 |
name | 台标名称 | String | 必选 |
logos | 台标组内的目标参数,参见台标参数说明 | String | 必选 |
台标参数说明
参数 | 说明 | 类型 | 是否必选 |
---|---|---|---|
uri | 台标相对路径 | String | 必选 |
width | 台标宽度 | Integer | 必选 |
height | 台标高度 | Integer | 必选 |
leftPos | 台标左上角位置宽度百分比,如90%,则leftPos=90;以下参数百分比类似 | Integer | 必选 |
topPos | 台标左上角位置高度百分比 | Integer | 必选 |
opacity | 台标透明度百分比 | Integer | 必选 |
resize | 台标缩放值百分比 | Integer | 必选 |
start | 台标开始时间点,百分比 | Integer | 必选 |
end | 台标结束时间点,百分比 | Integer | 必选 |
台标参数示例
[{"uri":"bj-hsy-images/p2191m9e/watermark/1.png","width":100,"height":50,"leftPos":0,"topPos":0,"opacity":100,"resize":100,"start":0,"end":50},{"uri":"bj-hsy-images/p2191m9e/watermark/2.png","width":100,"height":50,"leftPos":100,"topPos":100,"opacity":100,"resize":100,"start":50,"end":100}]
响应数据
{
"code":0,
"message":"success",
"result":"",
"success":true
}