Api doc


SDK's


Api Modules

admin.nrequests

Returns a count of all requests.



Supported Methods:

GET
Params
  • token (Required): valid token


Documentation

GET
Retrieves a count of all requests. Available shifts, vacations needing approving, shifts needing approving, shifts pickups needing approval, shift trades needding approval before or after, and shifts available to pickup.
Level 3 is required.

--

Parameters:

  1. "token": "xxxxxxx" //Valid token is required

Example Request:

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

Example Response:

  1. {
  2. "status":1,
  3. "data":{
  4. "total":354,
  5. "vacation":4,
  6. "shift_available":107,
  7. "shift_approval":349,
  8. "shift_request_waiting":0,
  9. "trade_approval":1
  10. },
  11. "token":"xxxxxxx"
  12. }