Get Download Link of Map

Last Updated on : 2023-06-15 05:22:06

Get the download link of a specified map file based on the map file ID. The link is valid for 1 hour.

API address

GET: /v1.0/users/sweepers/file/{device_id}/download

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritrueThe device ID.
idLongquerytrueThe record ID of a specified file.

Return parameter

Parameter nameTypeDescription
resultSweeperCleaningMulFloorMapVOThe object of a specified map file.

Description of result

Parameter nameTypeDescription
robot_mapStringThe temporary map link of the current cleaning path in case of multiple maps. This field is not returned in case of a single map.
app_mapStringThe temporary link of the floor cleaning map.

Request example

GET: /v1.0/users/sweepers/file/6c6561cfb316df6e7a****/download?id=14142011

Return example

{
    "result": {
        "app_map": "https://ty-****t-1254153901.cos.****.com/f94e56-12852922-yxzne56c96fb00522aa7/common/1639728507-map.txt?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDopcCYgw0qRoyV5qfKjvg2pPkqESnb5zI%26q-sign-time%3D1641977279%3B1641980879%26q-key-time%3D1641977279%3B1641980879%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D80816f146d2ea09906596e4ba0bb843c54ea****",
        "robot_map": "https://ty-****-1254153901.cos.****.com/f94e56-12852922-yxzne56c96fb00522aa7/common/1639728507-record.txt?sign=q-sign-algorithm%3Dsha1%26q-ak%3DAKIDopcCYgw0qRoyV5qfKjvg2pPkqESnb5zI%26q-sign-time%3D1641977279%3B1641980879%26q-key-time%3D1641977279%3B1641980879%26q-header-list%3Dhost%26q-url-param-list%3D%26q-signature%3D1d36e9d5b9fc34c08de9d92b536ef7698011****"
    },
    "t": 1641977279799,
    "success": true
}

Error code

For more information, see error code.