Deluge Help

Get files from a category

Overview

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

Supported Categories

  • Documents
  • Spreadsheets
  • Presentations
  • Pictures
  • Music
  • Videos
  • Sharedbyme
  • Sharedtome
  • Trash

Syntax

<response> = zoho.docs.retrieveFiles(<category>);​

where,
response - response returned as map from Zoho Docs.
Category - The category 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 documents category.

response = zoho.docs.retrieveFiles("documents");

where,
delugeteam - is the portal name from which the projects have to be retrieved.

Sample Response

The response returned is of the following format

{  
"FILES":[  
"{\"PERMISSION\":3,\"AUTHOR_ID\":\"63882738\",\"FOLDER_ID\":\"kcpn5DOCLIB63882736\",\"SCOPE\":1,\"AUTHOR\":\"Vignesh J\",\"CREATED_TIME_IN_MILLISECONDS\":1467867319777,\"FILE_EXTN\":\"zwriter\",\"DOCID\":\"nc4un92603ab901a34464a7202377c5911770\",\"LAST_MODIFIEDBY_AUTHOR_NAME\":\"Vignesh J\",\"ENCATT_NAME\":\"Syllabus Topics\",\"IS_FAVOURITE\":false,\"ENCHTML_NAME\":\"Syllabus Topics\",\"SHARED_TYPE\":\"PERSONAL\",\"LAST_OPENED_TIME\":\"Jul 7, 2016\",\"LAST_OPENED_TIME_IN_MILLISECONDS\":1467867954975,\"IS_LOCKED\":false,\"AUTHOR_EMAIL\":\"vignesh.rj@zohocorp.com\",\"CREATED_TIME\":\"Jul 7, 2016\",\"IS_DOCUMENT_VIEWED\":true,\"DOCNAME\":\"Syllabus Topics\",\"FILETYPE\":\"writer\",\"TRIM_DOCNAME\":\"\",\"LAST_MODIFIEDTIME_IN_MILLISECONDS\":1469465062995,\"EXTRA_PROP\":\"{\\\"COLLAB_ID\\\":\\\"2285371717029059312\\\",\\\"FOLDER_TYPE\\\":\\\"LEAF\\\"}\",\"LAST_MODIFIEDBY\":\"63882738\",\"ENCURL_NAME\":\"Syllabus+Topics\",\"IS_SHARED\":false,\"LAST_MODIFIEDTIME\":\"Jul 25, 2016\",\"SERVICE_TYPE\":\"zw\"}"
]
}

Share this post : FacebookTwitter

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

Write to us: support@zohocreator.com