It is recommended to use the encapsulated SDK to call the API.
For usage, please see the documents in the API links above. The syntax of each API is as follows:
PUT <ObjectName> HTTP/1.1 Host: <BucketName>-<APPID>.cos.<Region>.myqcloud.com Date: GMT Date Authorization: Auth String
The following variables in the syntax take the values in the return result of the ApplyUpload API:
<ObjectName>is MediaStoragePath (or CoverStoragePath for a cover file).
For API requests, note the following:
SecretKeyin TempCertificate in the return result of the ApplyUpload API. For the calculation method, please see Request Signature.
form-dataof the POST request packet, and assign it the value of the
Tokenfield in TempCertificate.