API - Reporting
https://securelb.trackerproducts.com/api/reports/buildreport
{
"reportId": 9238,
"mediaIds": null,
"itemIds": [
79329155
],
"caseIds": null,
"peopleIds": null,
"locationIds": null,
"savedSearchId": 0,
"timezoneOffset": -240,
"iANAZone": "America/New_York",
"orderByCol": "Location",
"orderByAsc": true,
"thenOrderByCol": "",
"thenOrderByAsc": false,
"casePeopleReport": false
}
this will return a report job id:
Next we will use the returned report job id to request the completed report: https://securelb.trackerproducts.com/api/reports/getcompletereport?jobId=1472655
This will return the following: { "complete": true, "fileLink": "https://safe-secure-media.s3.us-gov-east-1.amazonaws.com/Report-p1dyjp3b.oqr.pdf?X-Amz-Expires=60&response-content-disposition=inline&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIASS2VG4POS7ZZPJS3/20210319/us-gov-east-1/s3/aws4_request&X-Amz-Date=20210319T141218Z&X-Amz-SignedHeaders=host&X-Amz-Signature=afa1095fd939c6250d266474d5f3d4e8d5fd7f89d7087d32d27a76e5b30e2b40" }
This link can be used in a web browser to access the generated file: