Get Application by ID
Este endpoint retorna la información relacionada a una aplicación en el servicio ingresando su identificador.
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/company/api/v1/app/:app_id
caution
Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea
Code Examples
- Curl
- JavaScript
- Python
curl --location --request GET 'https://api.trust.lat/company/api/v1/app/1' \
--header 'Authorization: Bearer {{accessToken}}'
import requests
url = "https://api.trust.lat/company/api/v1/app/1"
payload={}
headers = {
'Authorization': 'Bearer {{accessToken}}'
}
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/company/api/v1/app/1',
headers: {
'Authorization': 'Bearer {{accessToken}}'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Responses
HTTP Code: 200 Found
{
"status": true,
"app": {
"id": 1,
"bundle_id": "com.trust.application",
"company_id": 1,
"name": "applicacion_1",
"description": "application from test 1",
"created_at": "2021-07-09T16:48:12.828Z",
"updated_at": "2021-07-09T16:48:12.828Z",
"status": true,
"img": "https://google.cl",
"capabilities": [],
"flavor_id": "com.trust.application",
"os": "android",
"client_uid": "",
"img_circle": "",
"generic_app": false,
"colour": ""
}
}
HTTP Code: 404 Not Found
{
"status": false
}