Get Applications by Company ID
Retorna un listado con todas las aplicaciones que están asociadas a una compañía.
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/company/:company_id/app
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/company/1/app' \
--header 'Authorization: Bearer {{accessToken}}'
import requests
url = "https://api.trust.lat/company/api/v1/company/1/app"
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/company/1/app',
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.application2",
"company_id": 1,
"name": "application_2",
"description": "Aplicación de muestra 2",
"created_at": "2021-07-09T16:50:53.148Z",
"updated_at": "2021-07-09T17:12:20.305Z",
"status": true,
"img": "https://google.cl",
"capabilities": [],
"flavor_id": "com.trust.application2",
"os": "android",
"client_uid": "",
"img_circle": "",
"generic_app": false,
"colour": ""
},
{
"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": ""
},
{
"id": 1,
"bundle_id": "com.trust.application3",
"company_id": 1,
"name": "application_3",
"description": "application from test 3",
"created_at": "2021-07-09T16:51:08.829Z",
"updated_at": "2021-07-09T16:51:08.829Z",
"status": true,
"img": "https://google.cl",
"capabilities": [],
"flavor_id": "com.trust.application3",
"os": "android",
"client_uid": "",
"img_circle": "",
"generic_app": false,
"colour": ""
}
]
}
HTTP Code: 200 OK - Company Not Found
{
"status": false,
"message": "Company not found."
}