Api doc


SDK's


Api Modules

timeclock.event

Add a timeclock event



Supported Methods:

CREATE
Params
  • token (Required): valid token
  • timeclock (Required): integer
  • type (Required): enum (breakin, breakout, notes, location, position, remote_site, tips)
  • timestamp: varchar
  • notes: varchar
  • location: varchar
  • position: varchar
  • remote_site: varchar
  • tips: varchar


UPDATE
Params
  • token (Required): valid token
  • timeclock (Required): integer
  • type (Required): varchar
  • event: varchar
  • data: varchar
  • timestamp: varchar
  • notes: varchar
  • location: varchar
  • position: varchar
  • clocktime: varchar
  • gps: varchar
  • tips: varchar


DELETE
Params
  • token (Required): valid token
  • timeclock (Required): integer
  • type (Required): varchar
  • event (Required): varchar


Documentation

CREATE
Add a timeclock event.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "timeclock": required //Timeclock id (integer)
  2. "type": required /*Timeclock event types (enum[breakin, breakout,
  3.   notes, location, position, tips])*/
  4. "timestamp": accepted //Timestamp (timestamp)
  5. "notes": accepted //Notes (varchar)
  6. "location": accepted //Location id (integer)
  7. "screenshot": accepted //Screenshot (varchar)
  8. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"timeclock.event",
  3. "method":"CREATE",
  4. "request":{
  5. "timeclock":648,
  6. "type":"notes",
  7. "timestamp":"1340625981",
  8. "notes":"New note"
  9. }
  10. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. },
  5. "token":"xxxxxxx"
  6. }