Api doc


SDK's


Api Modules

admin.files

Returns a list of all files uploaded into Humanity.



Supported Methods:

GET
Params
  • token (Required): valid token
  • training: integer
  • employee: integer


Documentation

GET
Retrieves a list of all files uploaded into ShiftPlanning.
If training id is forwarded trough parameter "training" the module retrieves the Training Files.
If employee id is forwarded trough parameter "employee" the module retrieves Employee Files.
If no parameters are forwarded module retrieves Admin Files.
Display limit is 50.

Level 5 is required.

--

Parameters:

  1. "training": accepted //Training id (integer)
  2. "employee": accepted //Employee id (integer)
  3. "token": "xxxxxxx" //Valid token is required

Example Request:

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

Example Response:

  1. {
  2. "status":1,
  3. "data":[
  4. {
  5. "id":"444",
  6. "name":"",
  7. "description":"",
  8. "filename":"payroll_export.csv",
  9. "date":"1339516067",
  10. "file_size":"239",
  11. "num_downloads":"0",
  12. "filetype":"application\/octet-stream",
  13. "extension":"csv",
  14. "url":"http:\/\/www.humanity.com\/api\/file\/444.j4k32k32k",
  15. "secureurl":"http:\/\/www.humanity.com\/app\/admin\/file.php?fid=ggfd"
  16. }
  17. ],
  18. "token":"xxxxxxx"
  19. }