跳到主要内容

新建或更新台标

服务地址

http://api-az-cn.danghongyun.com/rest

请求方法

POST

请求参数

参数说明类型是否必须
accessKey访问API用的accessKeyString必选
actionAPI名称,此接口为 "logoGroup"String必选
versionAPI版本,目前必须为2.0 String必选
timestampAPI调用时间戳,1970年1月1日以来的毫秒数,如1466488681033String必选
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
}