Api doc


SDK's


Api Modules

timeclock.timesheets

Returns a list of all Timesheets.



Supported Methods:

GET
Params
  • token (Required): valid token
  • period: varchar
  • status: enum (All, Approved, Unapproved)


Documentation

GET
Returns array of timesheets for the specified period.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "period": accepted //Time period (varchar)
  2. /* Accepted values:
  3.   * -'Today'
  4.   * -'Yesterday'
  5.   * -'Last 7 Days'
  6.   * -'This Week'
  7.   * -'Last Week'
  8.   * -'All' */
  9. "status": accepted //Timesheet status (enum[All,Approved,Unapproved])
  10. /* "All": All timesheets
  11.   * "Approved": Approved timesheets
  12.   * "Unapprove": Unapproved timesheets */
  13. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"timeclock.timesheets",
  3. "method":"GET",
  4. "request":{
  5. "period":"Last 7 Days",
  6. "status":"All"
  7. }
  8. }

Example Response:

  1. {
  2. "status":1,
  3. "data":[
  4. {
  5. "id":"1595602",
  6. "user":"247525",
  7. "store":"17949",
  8. "status":"0",
  9. "schedule":"138641",
  10. "notes":"h,mr",
  11. "created":"0",
  12. "in_timestamp":"1351684713",
  13. "in_day":"1281",
  14. "out_timestamp":"1351855841",
  15. "out_day":"1283",
  16. "in_hour":"53",
  17. "out_hour":"51",
  18. "in_location":"184.173.253.53",
  19. "out_location":"184.173.253.53",
  20. "in_terminal":"0",
  21. "out_terminal":"-98",
  22. "approved_by":"0",
  23. "approved_time":"0",
  24. "approved_notes":"",
  25. "in_picture":null,
  26. "out_picture":"",
  27. "screenshots":null,
  28. "break_time":"0",
  29. "start_timestamp":"2012-10-31 12:58:33",
  30. "end_timestamp":"2012-11-02 12:30:41",
  31. "name":"Professor Farnsworth",
  32. "schedule_name":"Office"
  33. }
  34. ],
  35. "token":"xxxxxxx"
  36. }

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