admin.files

Returns a list of all files uploaded into Humanity.

SUPPORTED METHODS:

GET

ParametersTypeDescription
token (required)Valid token
training (accepted)integerTraining id
employee (accepted)integerEmployee id

DOCUMENTATION

GET

Retrieves a list of all files uploaded into Humanity.
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.

Example Request:

{
       "module":"admin.files",
       "method":"GET",
       "request":{
 
       }
    }

Example Response:

{
       "status":1,
       "data":[
          {
             "id":"444",
             "name":"",
             "description":"",
             "filename":"payroll_export.csv",
             "date":"1339516067",
             "file_size":"239",
             "num_downloads":"0",
             "filetype":"application\/octet-stream",
             "extension":"csv",
             "url":"http:\/\/www.humanity.com\/api\/file\/444.j4k32k32k",
             "secureurl":"http:\/\/www.humanity.com\/app\/admin\/file.php?fid=ggfd"
          }
       ],
       "token":"xxxxxxx"
    }