Deluge Help

Get files from a folder

Overview

The zoho.docs.getFiles() task is used to retrieve all the files present in a specified folder in your Zoho Docs account.

Syntax

<response> = zoho.docs.getFiles(<FolderID>);​

where,
response - response returned as map from Zoho Docs.
FolderID - The id of the folder from which the files have to be retrieved. It is of string data type.

Example

The following script fetches all the files present in the specified folder.

response = zoho.docs.getFiles("0kav58698776c2a8b465f86b5efef876c7d3b");

where,
0kav58698776c2a8b465f86b5efef876c7d3b - is the id of the folder from which the files have to be retrieved.

Sample Response

The response returned is of the following format

{  
   "FILES":[  
      {  
         "AUTHOR":"Tom Hill",
         "AUTHOR_EMAIL":"tomhill@yahoo.com",
         "LAST_MODIFIEDTIME_IN_MILLISECONDS":1371015460774,
         "SCOPE":0,
         "FILE_EXTN":"jpg",
         "DOCID":"8tw2gf0022bc32fb94c4990f40658dd091983",
         "DOCNAME":"Chrysanthemum.jpg",
         "FOLDER_ID":"folder",
         "LAST_MODIFIEDTIME":"Jun 11",
         "SERVICE_TYPE":"upload",
         "IS_LOCKED":false,
         "FILETYPE":"image"
      }
   ]
}

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohocreator.com