×

User folders list

This API returns a list of folders that the user has access to in the account.

How to get data

Request address

To get the data, use the address:  https://<server_address>/api/api.php?

Request method

GET or POST

Request parameters

  • cmd=get_folders_user — command to get the list of folders
    For POST requests, parameters can be sent in the request body as JSON
  • node — node number where the command should be executed
 

Example GET request

https://<server_address>/api/api.php?cmd=get_folders_user&node=1
Response
{
  "code": 0,
  "msg": "Success",
  "data": [
    {"id":1,"name":"DEMO"},
    {"id":6,"name":"IP Emelyanov"},
    {"id":11,"name":"FOLDER1"},
    {"id":12,"name":"FOLDER2"}
  ]
}
In response to the API request, the following is returned:
  • code — result code (0 — successful operation)
  • msg — server message
  • data — array of user folders:
  • id — folder ID
  • name — folder name