import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const objectDownloadURLView = await client.objects.download('id');
console.log(objectDownloadURLView.download_url);{
"download_url": "<string>"
}Generate a presigned download URL for an Object. The URL will be valid for the specified duration.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const objectDownloadURLView = await client.objects.download('id');
console.log(objectDownloadURLView.download_url);{
"download_url": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the Object to generate download URL for.
Duration in seconds for the presigned URL validity (default: 3600).
Download URL generated successfully.
A response containing a presigned download URL for an Object.
The presigned download URL for the Object.
Was this page helpful?