Obtener un reporte de las últimas Asistencias

Obtiene una lista de las últimas Asistencias registradas de acuerdo al número límite solicitado y ordenado por fecha comenzando por el más reciente. El resultado obtenido es similar al Widget de Asistencias del Panel de apphuman

La Latitud y Longitud aún es una característica no completamente funcional

Punto de conexión

https://apps.integriapps.com/api/v1.0/appHuman/getLastAttendances/{attendanceReportLimit}

Parámetros

TipoNombreDescripción
StringID (requerido)La cantidad de registros a solicitar en el reporte

Ejemplo de Respuesta

{
    "Success": true,
    "FullResponseData": [
        {
            "Id": "E7",
            "Name": "MICHAEL",
            "LastName1": "SCOTT",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/120220610082515.jpg",
            "FriendlyAttendanceType": "Fin de Labores",
            "Date": "2023-09-20",
            "Time": "17:10:00"
        },
        {
            "Id": "E13",
            "Name": "PAM",
            "LastName1": "BEESLY",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/320220610082551.jpg",
            "FriendlyAttendanceType": "Fin de Labores",
            "Date": "2023-09-20",
            "Time": "17:10:00"
        },
        {
            "Id": "E11",
            "Name": "JIM",
            "LastName1": "HALPERT",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/220220609082551.jpg",
            "FriendlyAttendanceType": "Fin de Labores",
            "Date": "2023-09-20",
            "Time": "17:00:00"
        },
        {
            "Id": "E13",
            "Name": "PAM",
            "LastName1": "BEESLY",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/320220610082515.jpg",
            "FriendlyAttendanceType": "Inicio de Labores",
            "Date": "2023-09-20",
            "Time": "09:26:00"
        },
        {
            "Id": "E11",
            "Name": "JIM",
            "LastName1": "HALPERT",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/220220609082515.jpg",
            "FriendlyAttendanceType": "Inicio de Labores",
            "Date": "2023-09-20",
            "Time": "09:05:00"
        },
        {
            "Id": "E7",
            "Name": "MICHAEL",
            "LastName1": "SCOTT",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/120220609082515.jpg",
            "FriendlyAttendanceType": "Inicio de Labores",
            "Date": "2023-09-20",
            "Time": "08:25:00"
        },
        {
            "Id": "E7",
            "Name": "MICHAEL",
            "LastName1": "SCOTT",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/120220610082551.jpg",
            "FriendlyAttendanceType": "Fin de Labores",
            "Date": "2023-09-19",
            "Time": "19:06:00"
        },
        {
            "Id": "E13",
            "Name": "PAM",
            "LastName1": "BEESLY",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/320220609082551.jpg",
            "FriendlyAttendanceType": "Fin de Labores",
            "Date": "2023-09-19",
            "Time": "17:07:00"
        },
        {
            "Id": "E11",
            "Name": "JIM",
            "LastName1": "HALPERT",
            "Branch": "Scranton",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/220220610082551.jpg",
            "FriendlyAttendanceType": "Fin de Labores",
            "Date": "2023-09-19",
            "Time": "17:04:00"
        },
        {
            "Id": "E17",
            "Name": "KAREN",
            "LastName1": "FILIPPELLI",
            "Branch": "Utica",
            "Latitude": null,
            "Longitude": null,
            "Path": "https://apps.integriapps.com/assets/Files/AppHuman/Attendance/420220609082516.jpg",
            "FriendlyAttendanceType": "Fin de Labores",
            "Date": "2023-09-19",
            "Time": "15:25:00"
        }
    ],
    "ResponseText": "Task finished successfully. Retrieved 10 Attendance(s)"
}

Ejemplos de Solicitud

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