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
  • screenshot: 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
  • screenshot: 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[0,1,2,3,4,5])
  3. /* 0: Custom
  4.   * 1: Break start
  5.   * 2: Break end
  6.   * 3: Notes
  7.   * 4: Location
  8.   * 5: Screenshot */
  9. "timestamp": accepted //Timestamp (timestamp)
  10. "notes": accepted //Notes (varchar)
  11. "location": accepted //Location id (integer)
  12. "screenshot": accepted //Screenshot (varchar)
  13. "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. }

GET STARTED NOW

Free Trial. No Credit Card Required.

close
(e.g.+14158675309 or +1415-8675-309)

By clicking "Create my ShiftPlanning Account" you agree to the Terms of Service and Privacy Policy.

Have a promotional code?Click Here


LIVE CHAT DEMO REQUEST!

Please provide information below.

close
INSTANT DEMOSCHEDULED DEMO
Connect with a ShiftPlanning Team Member for a live demo right now!
 

RESELLER REQUEST!

Please provide information below.

close