Google Drive

Google Drive

Google Drive is a file storage and synchronization service created by Google. It allows users to store files in the cloud, share files, and edit documents, spreadsheets, and presentations with collaborators.

General Limits

Name Value
Maximum sheet rows count 500000
Maximum content length (in MB) 10

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

Copy file

Copies a file on Google Drive

Required Parameters

Source url
string
Url to source file
Destination file path
string
Destination file path in Google Drive, including target filename

Optional Parameters

Overwrite?
boolean
Overwrites the destination file if set to 'true'

Returns

Body
BlobMetadata

Blob metadata

Create file

Uploads a file to Google Drive

Required Parameters

Folder path
string
Folder path to upload the file to Google Drive
File name
string
Name of the file to create in Google Drive
File content
binary
Content of the file to upload to Google Drive

Returns

Body
BlobMetadata

Blob metadata

Delete file

Deletes a file from Google Drive

Required Parameters

File
string
Specify the file to delete

Returns

Body
BlobMetadata

Blob metadata

Extract archive to folder

Extracts an archive file into a folder in Google Drive (example: .zip)

Required Parameters

Source archive file path
string
Path to the archive file
Destination folder path
string
Path in Google Drive to extract the archive contents

Optional Parameters

Overwrite?
boolean
Overwrites the destination files if set to 'true'

Returns

array of BlobMetadata

Get file content using id

Retrieves file content from Google Drive using id

Required Parameters

File id
string
Unique identifier of the file to retrieve in Google Drive

Optional Parameters

Infer Content Type
boolean
Infer content-type based on extension

Returns

File Content
binary

The content of the file.

Get file content using path

Retrieves file content from Google Drive using path

Required Parameters

File path
string
Path of the file in Google Drive

Optional Parameters

Infer Content Type
boolean
Infer content-type based on extension

Returns

File Content
binary

The content of the file.

Get file metadata using id

Retrieves file metadata from Google Drive using id

Required Parameters

File
string
Specify the file

Returns

Body
BlobMetadata

Blob metadata

Get file metadata using path

Retrieves file metadata from Google Drive using path

Required Parameters

File path
string
Path of the file in Google Drive

Returns

Body
BlobMetadata

Blob metadata

List files in folder

List files in a Google Drive folder

Required Parameters

Folder id
string
Specify the folder in Google Drive

Returns

array of BlobMetadata

List files in root folder

Lists files in the Google Drive root folder

Required Parameters

Source url
string
Url to source file
Destination file path
string
Destination file path in Google Drive, including target filename

Optional Parameters

Overwrite?
boolean
Overwrites the destination file if set to 'true'

Returns

array of BlobMetadata

Update file

Updates a file in Google Drive

Required Parameters

File
string
Specify the file to update
File content
binary
Content of the file to upload to Google Drive

Returns

Body
BlobMetadata

Blob metadata

Definitions

BlobMetadata

Blob metadata

DisplayName
string
The display name of the file or folder.
ETag
string
The etag of the file or folder.
FileLocator
string
The filelocator of the file or folder.
Id
string
The unique id of the file or folder.
IsFolder
boolean
A boolean value (true, false) to indicate whether or not the blob is a folder.
LastModified
date-time
The date and time the file or folder was last modified.
LastModifiedBy
string
The user who last modified the file or folder.
MediaType
string
The media type of the file or folder.
Name
string
The name of the file or folder.
Path
string
The path of the file or folder.
Size
integer
The size of the file or folder.