History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
POST /template HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Tag>SmartCover</Tag><Name>TemplateName</Name><SmartCover><Format>jpg</Format><Width>1280</Width><Height>960</Height><Count>10</Count><DeleteDuplicates>true</DeleteDuplicates></SmartCover></Request>
节点名称(关键字) | 父节点 | 描述 | 类型 | 是否必选 |
Request | 无 | 保存请求的容器 | Container | 是 |
节点名称(关键字) | 父节点 | 描述 | 类型 | 是否必选 |
Tag | Request | 模板类型:SmartCover | String | 是 |
Name | Request | 模板名称,仅支持中文、英文、数字、_、-和*,长度不超过 64 | String | 是 |
SmartCover | Request | 智能封面参数 | Container | 是 |
节点名称(关键字) | 父节点 | 描述 | 类型 | 默认值 | 是否必选 |
Format | Request.SmartCover | 图片格式,支持 jpg、png 、webp | String | jpg | 否 |
Width | Request.SmartCover | 宽 值范围:[128,4096] 单位:px 若只设置 Width 时,按照视频原始比例计算 Height | String | 视频原始宽度 | 否 |
Height | Request.SmartCover | 高 值范围:[128,4096] 单位:px 若只设置 Height 时,按照视频原始比例计算 Width | String | 视频原始高度 | 否 |
Count | Request.SmartCover | 截图数量,取值范围 [1,10] | String | 3 | 否 |
DeleteDuplicates | Request.SmartCover | 封面去重,取值 true/false | String | true | 否 |
<Response><RequestId>NjQ0NGNlNDZfMThhYTk0MGFfY*********</RequestId><Template><Tag>SmartCover</Tag><Name>TemplateName</Name><TemplateId>t1f43110a08702470b8fa75894629501fa</TemplateId><BucketId>test-1234567890</BucketId><Category>Custom</Category><SmartCover><Width>1280</Width><Height>960</Height><Format>jpg</Format><Count>5</Count><DeleteDuplicates>false</DeleteDuplicates></SmartCover><CreateTime>2020-08-05T11:35:24+0800</CreateTime><UpdateTime>2020-08-31T16:15:20+0800</UpdateTime></Template></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 保存结果的容器 | Container |
RequestId | 无 | 请求的唯一 ID | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Tag | Response.Template | 模板类型,SmartCover | String |
Name | Response.Template | 模板名字 | String |
BucketId | Response.Template | 模板所属存储桶 | String |
Category | Response.Template | 模板属性,Custom 或者 Official | String |
TemplateId | Response.Template | 模板 ID | String |
UpdateTime | Response.Template | 更新时间 | String |
CreateTime | Response.Template | 创建时间 | String |
SmartCover | Response.Template | Container |
POST /template HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=************************************&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=****************************************Host: test-1234567890.ci.ap-beijing.myqcloud.comContent-Length: 1666Content-Type: application/xml<Request><Tag>SmartCover</Tag><Name>TemplateName</Name><SmartCover><Format>jpg</Format><Width>1280</Width><Height>960</Height><Count>10</Count><DeleteDuplicates>true</DeleteDuplicates></SmartCover></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 100Connection: keep-aliveDate: Thu, 14 Jul 2022 12:37:29 GMTServer: tencent-cix-ci-request-id: NjMxMDJhYTNfMThhYTk0MGFfYmU1OV8zZjc=<Response><RequestId>NjMxMDJhYTNfMThhYTk0MGFfYmU1OV8zZjc=</RequestId><Template><Tag>SmartCover</Tag><Name>TemplateName</Name><TemplateId>t1f16e1dfbdc994105b31292d45710642a</TemplateId><BucketId>test-1234567890</BucketId><Category>Custom</Category><SmartCover><Format>jpg</Format><Width>1280</Width><Height>960</Height><Count>10</Count><DeleteDuplicates>true</DeleteDuplicates></SmartCover><CreateTime>2020-08-05T11:35:24+0800</CreateTime><UpdateTime>2020-08-31T16:15:20+0800</UpdateTime></Template></Response>
文档反馈