TTMSFNCCloudGoogleDrive:
Usage
A component that provides access to the Google Drive service. It allows to read, create and delete folders as well as read, upload, move, rename, download and delete files.
Authorization information
Client ID, Client Secret, CallBack URL
Properties
Property name | Description |
---|---|
GDrive | A list of files and folders. |
Info | Account info |
TTMSFNCCloudGoogleDriveItem.PublicShare | Indicate if the file is shared |
TTMSFNCCloudGoogleDriveItem.WebContentLink | Retrieve a link to the file |
Methods
Method name | Description |
---|---|
CreateFolder | Create a new folder |
Delete | Delete a file or folder from the drive |
Download | Download a file from the drive |
ExportFile | Export and download a Google Sheets or Google Docs document. The exported file type can be selected with the ATargetMimeType parameter. Supported Mime types can be found here: Google Export Formats |
GetFolderList | Retrieve the list of files and folders for the root folder or a specific folder |
GetFolderListHierarchical | Retrieve the list of files and folders for a specific folder and add them to the GDrive list |
Search | Search for files and folders based on a query. Options: - ExactMatch : indicate if the query should match the filename exactly- FileNameOnly : indicate if the search applies to the filename only or also to the contents of the file- FileExtensions : only return files that have one of the given extensions- Folder : only return results for files in this folder |
SearchFile | Search for files based on a query |
SearchFolder | Search for folders based on a query |
Upload | Upload a file to the drive Options: Folder: Optionally provide a folder where the file is uploaded, otherwise the file is uploaded in the root folder |
UploadResumableFile | Upload a file to the drive in chunks. The upload is resumable and supports large files (multiple GB) Options: Folder: Optionally provide a folder where the file is uploaded, otherwise the file is uploaded in the root folder |
MoveFile | Move a file to a different folder |
MoveFileToRoot | Move a file to the root folder |
RenameFile | Rename an existing file |
Sample
See TTMSFNCCloudStorageServices for sample code