Follow
Get a list of items in a folder

Returns metadata for the files and folders for a given folder.

URL

GET /files

Query Parameters

Name  Description
parentId  The folder ID. To get the metadata of the root directory, use the value ‘/’.
max  The maximum number of items to return. Used for pagination.
offset   The page offset, used in conjunction with ‘max’.

Response

JSON containing a list of files and folders. The metadata for each item is the same that returned by the /metadata endpoint.

Example: https://www.acme.com/api/files?parentId=123456

[ 
{
title:"Folder A",< br />
kind:"folder"< br />
id":"2lj23lkj",< br />
viewLink:" https://www.acme.com/viewDocument?id=2lj23lkj ”,< br />
downloadLink:"https://www.acme.com/downloadDocument?id=2lj23lkj",< br />
mimeType:"",< br />
dateModified:"2014­06­05T17:39:45.251Z"< br />
size: ""< br />
},< br />
{< br />
title:"My Document",< br />
kind:"file"< br />
id":"da8cj234",< br />
viewLink:" https://www.acme.com/viewDocument?id=da8cj234 ”,< br />
downloadLink:"https://www.acme.com/downloadDocument?id=da8cj234",< br />
mimeType:"image/png",< br />
dateModified:"2014­06­05T17:39:45.251Z"< br />
size: "32554694"< br />
}
]

Audited 6/27/2018

This article last updated on 2018-06-28 16:41:28 UTC