Api doc


SDK's


Api Modules

timeclock.preclockin

Employee is on his/her way (Default: Authenticated User)



Supported Methods:

GET
Params
  • token (Required): valid token
  • employee: integer


CREATE
Params
  • token (Required): valid token
  • employee: integer


Documentation

GET
Get employees preclockins (Default: Authenticated User)
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "employee": accepted //Employee id (integer)
  2. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"timeclock.preclockin",
  3. "method":"GET",
  4. "request":{
  5. "employee":"159"
  6. }
  7. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "id":"47",
  5. "timestamp":"1342453561",
  6. "status":"0"
  7. },
  8. "token":"xxxxxxx"
  9. }

CREATE
Employee is on his/her way (Default: Authenticated User)
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "employee": accepted //Employee id (integer)
  2. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"timeclock.preclockin",
  3. "method":"CREATE",
  4. "request":{
  5. }
  6. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "id":"1152",
  5. "timestamp":1342453561
  6. },
  7. "token":"xxxxxxx"
  8. }