Info
Created 05-10-2020 by Lavinia
Gheghea
Revision
Description
The API
allows you to get daily status
Endpoints
GET: /dailystatus?dtDate=xxxx
Parameters
Headers and Query
Name | Description | Type |
API-key - required | Authorization Token | String(64) |
UID - required | UID -how can be obtained | String |
DEVICEID - required | DEVICEID | String |
offset | starting record | Integer |
limit | how many records displayed
on a page | Integer |
OrderFieldName | field name to order the
recordset | String |
OrderDirection | ASC or DESC | String |
Filter | filter the recordset | String |
dtDate | Date | String |
Curl example
curl -X GET "https://smartapi.smarttid.dk/dailystatus?dtDate=XXXX" -H "accept: */*" -H "UID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -H "DEVICEID:demo@smarttid.dk" -H "API-Key: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
Response
200 (OK) : array of dailystatus
Response body
[{ "EmployeeCode": "1001", "Name": "Test1", "JournalCode": "FUNK", "DepartmentCode": "ROMANIA", "WorktypeCode": "HELLIGDAG", "LogStart": null, "LogEnd": null, "StartTime": "2020-05-01T08:00:00", "EndTime": "2020-05-01T15:30:00", "DistrictCode": "", "TeamLeaderCode": "", "ProfileCode": "FUNK_FLEX", "Phone": "123455", "CellPhone": "34873642871321", "EMail": "cp@adm4you.dk", "DimensionCode1": "BMW", "DimensionCode2": "37", "DimensionCode3": null, "DimensionCode4": null, "DimensionCode5": null, "JobCode": null, "OperationDescription": null, "ActivityDescription": null, "JobGroupCode": null, "JobDescription": null, "JobDescription2": null, "Remark": null }, { "EmployeeCode": "1005", "Name": "Test2", "JournalCode": "FUNK", "DepartmentCode": "DENMARK", "WorktypeCode": "HELLIGDAG", "LogStart": null, "LogEnd": null, "StartTime": "2020-05-01T08:00:00", "EndTime": "2020-05-01T15:30:00", "DistrictCode": "", "TeamLeaderCode": "", "ProfileCode": "FUNK_FLEX", "Phone": "20995920", "CellPhone": "", "EMail": "lc@smarttid.dk", "DimensionCode1": "BMW", "DimensionCode2": "37", "DimensionCode3": "", "DimensionCode4": "", "DimensionCode5": "", "JobCode": null, "OperationDescription": null, "ActivityDescription": null, "JobGroupCode": null, "JobDescription": null, "JobDescription2": null, "Remark": null }, ]
Response headers:
content-encoding: gzip content-length: 238 content-type: application/json; charset=utf-8 date: Mon, 24 Aug 2020 08:01:23 GMT server: Microsoft-IIS/10.0 vary: Accept-Encoding x-pagination: {"totalCount":4,"totalFiltered":4,"Offset":0,"Limit":4,"Returned":4} x-powered-by: ASP.NET
400 (ERROR) : Error
message
Response Body
Error message