Api doc


SDK's


Api Modules

reports.daily_peak_hours



Supported Methods:

GET
Params
  • token (Required): valid token
  • start_date (Required): date
  • end_date (Required): date
  • location: varchar


Documentation

GET
Retrieves daily peak hours between selected dates.
Level 3 is required.

--

Parameters:

  1. "start_date": required //Start date (date)
  2. "end_date": required //End date (date)
  3. "token": "xxxxxxx" //Valid token is required

Example Request:

  1. {
  2. "method":"GET",
  3. "module":"reports.daily_peak_hours",
  4. "request":{
  5. "start_date":"Jul 10, 2012",
  6. "end_date":"Jul 20, 2012",
  7. }
  8. }

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "dates":{
  5. "1168":{
  6. "id":1168,
  7. "formatted":"Jul 10, 2012"
  8. },
  9. "1169":{
  10. "id":1169,
  11. "formatted":"Jul 11, 2012"
  12. },
  13. "1170":{
  14. "id":1170,
  15. "formatted":"Jul 12, 2012"
  16. },
  17. "1171":{
  18. "id":1171,
  19. "formatted":"Jul 13, 2012"
  20. },
  21. "1172":{
  22. "id":1172,
  23. "formatted":"Jul 14, 2012"
  24. },
  25. "1173":{
  26. "id":1173,
  27. "formatted":"Jul 15, 2012"
  28. },
  29. "1174":{
  30. "id":1174,
  31. "formatted":"Jul 16, 2012"
  32. },
  33. "1175":{
  34. "id":1175,
  35. "formatted":"Jul 17, 2012"
  36. },
  37. "1176":{
  38. "id":1176,
  39. "formatted":"Jul 18, 2012"
  40. },
  41. "1177":{
  42. "id":1177,
  43. "formatted":"Jul 19, 2012"
  44. },
  45. "1178":{
  46. "id":1178,
  47. "formatted":"Jul 20, 2012"
  48. }
  49. },
  50. "locations":[
  51. {
  52. "id":0,
  53. "name":"Schedule Overview",
  54. "date":{
  55. "1168":13.5,
  56. "1169":6,
  57. "1170":6,
  58. "1171":32,
  59. "1172":6,
  60. "1173":6,
  61. "1174":6,
  62. "1175":24,
  63. "1176":2,
  64. "1177":2,
  65. "1178":2
  66. },
  67. "total":105.5
  68. },
  69. {
  70. "id":"294",
  71. "name":"Budget",
  72. "date":{
  73. "1168":7.5
  74. },
  75. "total":7.5
  76. }
  77. ]
  78. },
  79. "token":"xxxxxxx"
  80. }