Show download link
Muestra el detalle de un enlace de descarga generado haciendo ingreso de su uuid.
Endpoint
Headers
Key | Value | Description |
---|---|---|
Content-Type | application/json | |
Authorization | Bearer {{access_token}} | access_token obtained in Atenea |
Url
Method: GET
URL: https://api.trust.lat/chronos/v1/links/:uuid
caution
Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea
Path Variables
Key | Value | Description |
---|---|---|
uuid | ffffffff-ffff-ffff-ffff-ffffffffffff | Identificador único del enlace de descarga |
Code Examples
- Curl
- JavaScript
- Python
curl --location --request GET 'https://api.trust.lat/chronos/v1/links/ffffffff-ffff-ffff-ffff-ffffffffffff' \
--header 'Authorization: Bearer `{{access_token}}`'
import requests
url = "https://api.trust.lat/chronos/v1/links/ffffffff-ffff-ffff-ffff-ffffffffffff"
payload={}
headers = {
'Authorization': 'Bearer `{{access_token}}`',
'Content-Type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.trust.lat/chronos/v1/links/ffffffff-ffff-ffff-ffff-ffffffffffff',
headers: {
'Authorization': 'Bearer `{{access_token}}`',
'Content-Type': 'application/json'
},
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Responses
HTTP Code: 200 OK
{
"code": 200,
"resource": "Download Link",
"data": {
"link": "https://api-tst.trust.lat/chronos/v1/file/ffffffffffffffffffffffffffffffff",
"max_download": 1,
"uuid": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"size": "1687.421875 KB",
"secured_by_password": true
},
"message": "Found"
}
HTTP Code: 404 Not Found
{
"code": 404,
"resource": "Download Link",
"message": "Not found"
}