def SetTranscodeCallback(self, request): """设置文档转码回调地址,回调数据格式请参考文档:https://cloud.tencent.com/document/product/1137/40260 :param request: Request instance for SetTranscodeCallback. :type request: :class:`tencentcloud.tiw.v20190919.models.SetTranscodeCallbackRequest` :rtype: :class:`tencentcloud.tiw.v20190919.models.SetTranscodeCallbackResponse` """ try: params = request._serialize() body = self.call("SetTranscodeCallback", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.SetTranscodeCallbackResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def SetTranscodeCallback(self, request): """设置文档转码回调地址 :param request: 调用SetTranscodeCallback所需参数的结构体。 :type request: :class:`tencentcloud.tiw.v20190919.models.SetTranscodeCallbackRequest` :rtype: :class:`tencentcloud.tiw.v20190919.models.SetTranscodeCallbackResponse` """ try: params = request._serialize() body = self.call("SetTranscodeCallback", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.SetTranscodeCallbackResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)
def SetTranscodeCallback(self, request): """This API is used to set the callback address for document transcoding. For the callback format, please [see here](https://intl.cloud.tencent.com/document/product/1137/40260?from_cn_redirect=1). :param request: Request instance for SetTranscodeCallback. :type request: :class:`tencentcloud.tiw.v20190919.models.SetTranscodeCallbackRequest` :rtype: :class:`tencentcloud.tiw.v20190919.models.SetTranscodeCallbackResponse` """ try: params = request._serialize() body = self.call("SetTranscodeCallback", params) response = json.loads(body) if "Error" not in response["Response"]: model = models.SetTranscodeCallbackResponse() model._deserialize(response["Response"]) return model else: code = response["Response"]["Error"]["Code"] message = response["Response"]["Error"]["Message"] reqid = response["Response"]["RequestId"] raise TencentCloudSDKException(code, message, reqid) except Exception as e: if isinstance(e, TencentCloudSDKException): raise else: raise TencentCloudSDKException(e.message, e.message)