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).<BucketName>-<APPID>
is StorageBucket.<Region>
is StorageRegion.For API requests, note the following:
Authorization
signature, use SecretId
and SecretKey
in TempCertificate in the return result of the ApplyUpload API. For the calculation method, please see Request Signature.form-data
of the POST request packet, and assign it the value of the Token
field in TempCertificate.
Was this page helpful?