Media files are downloaded using HTTP GET. The following HTTP headers must be set in the download request:
Content-Type
=application/json
X-Token
="<Token>"
Media Server Download URL Format
Use the following URL format to download media files:
plain texthttps://<nandboxBotServer>:<port>/nandbox/download/<media_id>
đ Example:
plain texthttps://w1.nandbox.net:8080/nandbox/download/123456789.jpg
Notes:
media_id
is the unique identifier for the media file to be downloaded.
- Ensure a valid authentication token (
X-Token
) is provided in the request header.
- The response will contain the binary content of the media file.
Responses
đĸ 200
json{ "<media binary content>" }
đ´ 404
json{ "message" : "Not Found" }