接口描述
接口名称:
/Material/CreateUploadMaterial
。接口功能:申请上传。
调用方式
输入参数
输出参数
字段 | 类型 | 描述 |
UploadContext | String | 上传上下文。 |
VodUploadSign | String | 上传签名。 |
示例
示例1:申请上传成功
申请上传媒体资源上传,成功返回签名。
输入示例
{"ClassId": 1423,"MaterialType": "VIDEO","Name": "上传测试","Owner": {"Id": "ce4cdaf6-6039-486b-8f09-a5df23dbe6c9","Type": "PERSON"},"VerifySign": "jMGDoS3N7l+kmdsuh5o6B9MXVuxjdXJyZW50VGltZVN0YW1wPxxxxx"}
输出示例
{"Code": "Success","Message": "成功","EnglishMessage": "success","Data": {"UploadContext": "xxxxxxxxxx","VodUploadSign": "xxxxxxxxxx"}}
示例2:申请上传失败
申请上传媒体资源上传到无访问权限的目录,返回权限不足。
输入示例
{"ClassId": 1423,"MaterialType": "VIDEO","Name": "上传测试","Owner": {"Id": "ce4cdaf6-6039-486b-8f09-a5df23dbe6c9","Type": "PERSON"},"VerifySign": "jMGDoS3N7l+kmdsuh5o6B9MXVuxjdXJyZW50VGltZVN0YW1wPxxxxx"}
输出示例
{"Code": "OperationDenied.PermissionDeny","Message": "权限不足","EnglishMessage": "permission denied"}