阅读245 返回首页    go 阿里云


新增水印模版__水印模板接口_API使用手册_媒体转码-阿里云

描述

创建水印模板。

请求参数

名称 类型 必填项 描述
Action String 操作接口名,系统规定参数,取值:AddWaterMarkTemplate
Name String 模板名称,最大长度128字节。
Config String 水印模板配置,JSON对象,见附录 参数WaterMark Config详情,例如:
{
"Width":"10",
"Height":"30",
"Dx":"10",
"Dy":"5",
"ReferPos":"TopRight",
"Type":"Image"
}

返回参数

名称 类型 描述
WaterMarkTemplate AliyunWaterMarkTemplate 水印模板

示例

请求示例

  1. https://mts.aliyuncs.com/?Name=example-watermark&Config=%7B%22Width%22%3A%2210%22%2C%22Height%22%3A%2230%22%2C%22Dx%22%3A%2210%22%2C%0A%22Dy%22%3A%225%22%2C%22ReferencePos%22%3A%22TopRight%22%2C%0A%22Type%22%3A%22Image%22%7D%0A&Action=AddWaterMarkTemplate&<公共参数>

返回示例

XML:

  1. <AddWaterMarkTemplateResponse>
  2. <RequestId>25818875-5F78-4A13-BEF6-D7393642CA58</RequestId>
  3. <WaterMarkTemplate>
  4. <Id>88c6ca184c0e47098a5b665e2a126797</Id>
  5. <Name>example-watermark</Name>
  6. <Width>10</Width>
  7. <Height>30</Height>
  8. <Dx>10</Dx>
  9. <Dy>5</Dy>
  10. <ReferPos>TopRight</ReferPos>
  11. <Type>Image</Type>
  12. <State>Normal</State>
  13. </WaterMarkTemplate>
  14. </AddWaterMarkTemplateResponse>

Json:

  1. {
  2. "RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
  3. "WaterMarkTemplate": {
  4. "Id": "88c6ca184c0e47098a5b665e2a126797",
  5. "Name": "example-watermark",
  6. "Width": "10",
  7. "Height": "30",
  8. "Dx": "10",
  9. "Dy": "5",
  10. "ReferPos": "TopRight",
  11. "Type": "Image",
  12. "State": "Normal"
  13. }
  14. }

最后更新:2016-11-24 11:23:47

  上一篇:go 删除自定义转码模板__自定义转码模板接口_API使用手册_媒体转码-阿里云
  下一篇:go 更新水印模版__水印模板接口_API使用手册_媒体转码-阿里云