Skip to main content

List Sub-folders

If you wish to get the list of sub-folders in a folder then this API enables you to list all the sub-folders inside any specific folder. You would need to send an

HTTP GET request to https://dev.vdocipher.com/api/videos/folders/:folderId.

note

Folder ID for root folder is root.

Sample Code for Listing Sub-Folders of a Folder​

The sample folder ID is written as :folderId. Replace this with the desired folder ID.

The sample API Secret Key is a1b2c3d4e5.

curl -X GET \
https://dev.vdocipher.com/api/videos/folders/:folderId \
-H 'Accept: application/json' \
-H 'Authorization: Apisecret a1b2c3d4e5'

Sample Response from API​

{
"folderList": [
{
"id": "b3d9f19b3dc4xxxxxxxxxxxxxxxxxxxx",
"name": "Movies",
"parent": "3ef518f01f6fxxxxxxxxxxxxxxxxxxxx",
"videosCount": 0,
"foldersCount": 84
},
{
"id": "ca038407e1b0xxxxxxxxxxxxxxxxxxxx",
"name": "Tutorials",
"parent": "3ef518f01f6fxxxxxxxxxxxxxxxxxxxx",
"videosCount": 270,
"foldersCount": 2
}
],
"current": {
"id": "3ef518f01f6fxxxxxxxxxxxxxxxxxxxx",
"name": "Published Videos",
"parent": "e1812a34c36axxxxxxxxxxxxxxxxxxxx"
},
"parent": {
"id": "e1812a34c36axxxxxxxxxxxxxxxxxxxx",
"name": "All Videos",
"parent": "50d30b04273cxxxxxxxxxxxxxxxxxxxx"
}
}
note

The property parent has the same structure as the property current but when the parent folder is root it will be just null.