File download

Last Updated on : 2023-06-20 12:34:14download

Download a specified file according to the object key information of the file.

API address

POST: /v1.0/iot-03/app-contents/files/actions/download

Request parameter

Description of body

Parameter name Type IN Required Description
biz_urls List true The object key of the file.

Return parameter

Parameter name Type Description
result List The list of files.

Description of result

Parameter name Type Description
biz_url String The object key of the file.
file_url String The URL of the file.

Request example

POST: /v1.0/iot-03/app-contents/files/actions/download
{ "bizUrls": [ "/suramar/content/1619002638fd391d975de.jpeg" ] }

Return example

{ "result": [ { "file_url": "https://public-data-daily-1254153901.cos.ap-shanghai.myqcloud.com/suramar/content/1619002638fd391d975de.jpeg", "biz_url": "/suramar/content/1619002638fd391d975de.jpeg" } ], "t": 1630378300439, "success": true }

Error code

For more information, see error code.