Deprecated. The DocsList service was deprecated on December 11, 2014. To work with files in Google Drive, use the Drive service instead.
This service allows scripts to create, find, and modify files and folders in Google Drive.
// This example creates a file called 'example file'
DocsList.createFile('example file', 'example file contents');
Classes
Name | Brief description |
---|---|
| The DocsList service contains methods to create and retrieve files and folders. |
| This class contains methods to get information about the file and modify its contents. |
| An enumeration used to represent various Google and non-Google file types. |
| Holds an array of files as well as a token used to enable pagination in
methods that return a limited number of items such as
. |
| A folder contains methods to create, find, and access files inside of itself. |
| Holds an array of folders as well as a token used to enable pagination in
methods that return a limited number of items such as
. |
| A token object used to enable pagination in methods that return a limited number of items. |
Class DocsList
Class File
Methods
Method | Return type | Brief description |
---|---|---|
getAs(contentType) | Blob | Return the data inside this object as a blob converted to the specified content type. |
getBlob() | Blob | Return the data inside this object as a blob. |