Obtiene los detalles de un solo Empleado con los datos que se pueden visualizar en la tabla de Empleados de apphuman
Punto de conexión
https://apps.integriapps.com/api/v1.0/appHuman/getEmployees/{ID}
Parámetros
Tipo | Nombre | Descripción |
---|---|---|
String | ID (requerido) | El ID del Empleado que se compone por la letra «E» mayúscula mas el número consecutivo del Empleado |
Ejemplo de Respuesta
{
"Success": true,
"FullResponseData": [
{
"Id": "E1",
"Name": "DAVID",
"LastName1": "WALLACE",
"LastName2": null,
"IsActiveUser": true,
"Status": "A",
"Position": "CEO",
"Color": null,
"Branch": "Oficinas Corporativas",
"URN": "33E5621"
}
],
"ResponseText": "Task finished successfully. Retrieved 1 Employee(s)"
}
Ejemplos de Solicitud
Javascript – jQuery
var settings = {
"url": "https://apps.integriapps.com/api/v1.0/appHuman/getEmployees/E1",
"method": "GET",
"timeout": 0,
"headers": {
"APIKey": "AwQ29VJ67p6TOw6XMIAw",
"Cookie": "TiPMix=15.36574587149534; x-ms-routing-name=self"
},
};
$.ajax(settings).done(function (response) {
console.log(response);
});
C# – RestSharp
var client = new RestClient("https://apps.integriapps.com/api/v1.0/appHuman/getEmployees/E1");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("APIKey", "AwQ29VJ67p6TOw6XMIAw");
request.AddHeader("Cookie", "TiPMix=15.36574587149534; x-ms-routing-name=self");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
PHP – cURL
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://apps.integriapps.com/api/v1.0/appHuman/getEmployees/E1',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'APIKey: AwQ29VJ67p6TOw6XMIAw',
'Cookie: TiPMix=15.36574587149534; x-ms-routing-name=self'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;