Obtener una lista de todos los Empleados

Obtiene una lista de todos los Empleados sin importar su Estatus con los detalles que se pueden visualizar en la tabla de Empleados de apphuman

Punto de conexión

https://apps.integriapps.com/api/v1.0/appHuman/getEmployees/all

Parámetros

TipoNombreDescripción
StringID (requerido)Utilizar "all" para obtener a todos los Empleados de la lista

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"
        },
        {
            "Id": "E3",
            "Name": "ALAN",
            "LastName1": "BRAND",
            "LastName2": null,
            "IsActiveUser": true,
            "Status": "V",
            "Position": "CEO",
            "Color": null,
            "Branch": "Oficinas Corporativas",
            "URN": "36E5923"
        },
        {
            "Id": "E5",
            "Name": "JAN",
            "LastName1": "LEVINSON",
            "LastName2": null,
            "IsActiveUser": true,
            "Status": "S",
            "Position": "Vicepresidente de Ventas",
            "Color": "#e32400",
            "Branch": "Oficinas Corporativas",
            "URN": "37E6025"
        },
        {
            "Id": "E7",
            "Name": "MICHAEL",
            "LastName1": "SCOTT",
            "LastName2": null,
            "IsActiveUser": true,
            "Status": "A",
            "Position": "Gerente Regional",
            "Color": "#0056d6",
            "Branch": "Scranton",
            "URN": "38E6127"
        },
        {
            "Id": "E9",
            "Name": "DWIGHT",
            "LastName1": "SHRUTE",
            "LastName2": null,
            "IsActiveUser": true,
            "Status": "A",
            "Position": "Asistente del Gerente Regional",
            "Color": "#785700",
            "Branch": "Scranton",
            "URN": "39E6229"
        },
        {
            "Id": "E11",
            "Name": "JIM",
            "LastName1": "HALPERT",
            "LastName2": null,
            "IsActiveUser": true,
            "Status": "A",
            "Position": "Representante de Ventas",
            "Color": "#c3d117",
            "Branch": "Scranton",
            "URN": "42E65211"
        },
        {
            "Id": "E13",
            "Name": "PAM",
            "LastName1": "BEESLY",
            "LastName2": null,
            "IsActiveUser": true,
            "Status": "A",
            "Position": "Recepcionista",
            "Color": "#f4a4c0",
            "Branch": "Scranton",
            "URN": "43E66213"
        },
        {
            "Id": "E15",
            "Name": "CREED",
            "LastName1": "BRATTON",
            "LastName2": null,
            "IsActiveUser": true,
            "Status": null,
            "Position": null,
            "Color": null,
            "Branch": "Scranton",
            "URN": "44E67215"
        },
        {
            "Id": "E17",
            "Name": "KAREN",
            "LastName1": "FILIPPELLI",
            "LastName2": null,
            "IsActiveUser": false,
            "Status": "A",
            "Position": "Gerente Regional",
            "Color": "#0056d6",
            "Branch": "Utica",
            "URN": "127E155217"
        },
        {
            "Id": "E19",
            "Name": "HOLLY",
            "LastName1": "FLAX",
            "LastName2": null,
            "IsActiveUser": false,
            "Status": "A",
            "Position": "Recursos Humanos",
            "Color": "#ffb43f",
            "Branch": "Nashua",
            "URN": "128E156219"
        },
        {
            "Id": "E21",
            "Name": "TOBY",
            "LastName1": "FLENDERSON",
            "LastName2": "",
            "IsActiveUser": false,
            "Status": "V",
            "Position": "Recursos Humanos",
            "Color": "#ffb43f",
            "Branch": "Scranton",
            "URN": "309E342221"
        },
        {
            "Id": "E23",
            "Name": "KELLY",
            "LastName1": "KAPOOR",
            "LastName2": "",
            "IsActiveUser": false,
            "Status": "A",
            "Position": "Representante de Servicio al Cliente",
            "Color": "#05a8a5",
            "Branch": "Scranton",
            "URN": "310E343223"
        }
    ],
    "ResponseText": "Task finished successfully. Retrieved 12 Employee(s)"
}

Ejemplos de Solicitud

Javascript – jQuery
var settings = {
  "url": "https://apps.integriapps.com/api/v1.0/appHuman/getEmployees/all",
  "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/all");
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/all',
  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;

Ejemplos interactivos