POST /jobs HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Input><Object>input/demo.mp4</Object></Input><Operation><Tag>Animation</Tag><TemplateId>t1f16e1dfbdc994105b31292d45710642a</TemplateId><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/animation.gif</Object></Output><UserData>This is my Animation job.</UserData></Operation><Operation><Tag>Transcode</Tag><TemplateId>t1995d523e42df4c5e858f244b4174360c</TemplateId><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/transcode.mp4</Object></Output><UserData>This is my Trancode job.</UserData></Operation><Operation><Tag>SmartCover</Tag><SmartCover><Format>jpg</Format><Width>1280</Width><Height>960</Height><Count>5</Count><DeleteDuplicates>true</DeleteDuplicates></SmartCover><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/smartcover-${Number}.jpg</Object></Output><UserData>This is my SmartCover job.</UserData></Operation><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON<CallBackFormat></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required |
Request | None | Request container | Container | Yes |
Request
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
Input | Request | Information of the media file to be processed | Container | Yes |
Operation | Request | Operation rule. Up to six operation rules are supported. | Container | Yes |
QueueId | Request | Queue ID of the job | String | Yes |
Input
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type | Required |
Object | Request.Input | Media filename | String | Yes |
Operation
varies by job type. For more information, see the following documents:<Response><JobsDetail><Code>Success</Code><Message/><JobId>j682b9662f84611ecb8546d80f2baf56f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Input><BucketId>test-123456789</BucketId><Object>input/demo.mp4</Object><Region>ap-chongqing</Region></Input><Operation><Tag>Animation</Tag><TemplateId>t1f16e1dfbdc994105b31292d45710642a</TemplateId><TemplateName>animation_demo</TemplateName><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/animation.gif</Object></Output><UserData>This is my Animation job.</UserData></Operation></JobsDetail><JobsDetail><Code>Success</Code><Message/><JobId>j68427030f84611ecb8546d80f2baf56f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Input><BucketId>test-123456789</BucketId><Object>input/demo.mp4</Object><Region>ap-chongqing</Region></Input><Operation><Tag>Transcode</Tag><TemplateId>t1995d523e42df4c5e858f244b4174360c</TemplateId><TemplateName>transcode_demo</TemplateName><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/transcode.mp4</Object></Output><UserData>This is my Trancode job.</UserData></Operation></JobsDetail><JobsDetail><Code>Success</Code><Message/><JobId>j6842765cf84611ecb8546d80f2baf56f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Input><BucketId>test-123456789</BucketId><Object>input/demo.mp4</Object><Region>ap-chongqing</Region></Input><Operation><Tag>SmartCover</Tag><SmartCover><Format>jpg</Format><Width>1280</Width><Height>960</Height><Count>5</Count><DeleteDuplicates>true</DeleteDuplicates></SmartCover><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/smartcover-${Number}.jpg</Object></Output><UserData>This is my SmartCover job.</UserData></Operation></JobsDetail></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | None | Response container | Container |
Response
has the following sub-nodes:Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Job details | Container array |
JobsDetail
varies by job type. For more information, see the following documents:POST /jobs HTTP/1.1Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0**********&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=28e9a4986df11bed0255e97ff90500557e0ea057Host: examplebucket-1250000000.ci.ap-beijing.myqcloud.comContent-Length: 166Content-Type: application/xml<Request><Input><Object>input/demo.mp4</Object></Input><Operation><Tag>Animation</Tag><TemplateId>t1f16e1dfbdc994105b31292d45710642a</TemplateId><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/animation.gif</Object></Output><UserData>This is my Animation job.</UserData></Operation><Operation><Tag>Transcode</Tag><TemplateId>t1995d523e42df4c5e858f244b4174360c</TemplateId><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/transcode.mp4</Object></Output><UserData>This is my Trancode job.</UserData></Operation><Operation><Tag>SmartCover</Tag><SmartCover><Format>jpg</Format><Width>1280</Width><Height>960</Height><Count>5</Count><DeleteDuplicates>true</DeleteDuplicates></SmartCover><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/smartcover-${Number}.jpg</Object></Output><UserData>This is my SmartCover job.</UserData></Operation><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><CallBack>http://callback.demo.com</CallBack><CallBackFormat>JSON<CallBackFormat></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Mon, 28 Jun 2022 15:23:12 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><Code>Success</Code><Message/><JobId>j682b9662f84611ecb8546d80f2baf56f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Input><BucketId>test-123456789</BucketId><Object>input/demo.mp4</Object><Region>ap-chongqing</Region></Input><Operation><Tag>Animation</Tag><TemplateId>t1f16e1dfbdc994105b31292d45710642a</TemplateId><TemplateName>animation_demo</TemplateName><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/animation.gif</Object></Output><UserData>This is my Animation job.</UserData></Operation></JobsDetail><JobsDetail><Code>Success</Code><Message/><JobId>j68427030f84611ecb8546d80f2baf56f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Input><BucketId>test-123456789</BucketId><Object>input/demo.mp4</Object><Region>ap-chongqing</Region></Input><Operation><Tag>Transcode</Tag><TemplateId>t1995d523e42df4c5e858f244b4174360c</TemplateId><TemplateName>trancode_demo</TemplateName><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/transcode.mp4</Object></Output><UserData>This is my Trancode job.</UserData></Operation></JobsDetail><JobsDetail><Code>Success</Code><Message/><JobId>j6842765cf84611ecb8546d80f2baf56f</JobId><State>Submitted</State><CreationTime>2022-06-27T15:23:10+0800</CreationTime><StartTime>-</StartTime><EndTime>-</EndTime><QueueId>p2242ab62c7c94486915508540933a2c6</QueueId><Input><BucketId>test-123456789</BucketId><Object>input/demo.mp4</Object><Region>ap-chongqing</Region></Input><Operation><Tag>SmartCover</Tag><SmartCover><Format>jpg</Format><Width>1280</Width><Height>960</Height><Count>5</Count><DeleteDuplicates>true</DeleteDuplicates></SmartCover><Output><Region>ap-chongqing</Region><Bucket>test-123456789</Bucket><Object>output/smartcover-${Number}.jpg</Object></Output><UserData>This is my SmartCover job.</UserData></Operation></JobsDetail></Response>
Apakah halaman ini membantu?