Api doc


SDK's


Api Modules

schedule.restore

View History of schedule clears



Supported Methods:

GET
Params
  • token (Required): valid token
  • start_date: date
  • end_date: date
  • schedule: varchar
  • detailed: enum (0, 1)
  • timestamp: unix timestamp


Documentation

GET
View History of schedule clears, and restore them.
Level 5 is required (all users can fetch this module)

--

Parameters:

  1. "start_date": accepted //Start date (date)
  2. "end_date": accepted //End date (date)
  3. "schedule": accepted //Schedules (varchar)
  4. /* Array of schedule ids (eg. "234,563,770") */
  5. "detailed": accepted //Detailed (enum[0,1])
  6. /* 0: Not detailed restore
  7.   * 1: Detailed restore */
  8. "timestamp": accepted //Unix timestamp (timestamp)
  9. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "module":"schedule.restore",
  3. "method":"GET",
  4. "request":{
  5.  
  6. }
  7. }

Example Response:

  1. {
  2. "status":"1",
  3. "data":{
  4. "id":"4563",
  5. "total":"12",
  6. "timestamp":"1333274348",
  7. "date":{
  8. "id":"6656455",
  9. "month":"5",
  10. "day":"18",
  11. "year":"2012",
  12. "weekday":"Sat",
  13. "mname":"May",
  14. "week":"20",
  15. "dayid":"7",
  16. "formatted":"May 19, 2012"
  17. },
  18. "time":"7:48pm",
  19. "shifts":""
  20. },
  21. "token":"xxxxxxxx"
  22. }