Google Drive avatar
Google Drive

Deprecated

Pricing

Pay per usage

Go to Store
Google Drive

Google Drive

Deprecated

Developed by

Youcef Islam Remichi

Youcef Islam Remichi

Maintained by Community

Moved to https://apify.com/onidivo/google-drive --------- ----- ---------- --------- ------- ------------ Manage Google Drive's files and folders. Mostly used for transferring files from Key-Value stores to Google Drive.

0.0 (0)

Pricing

Pay per usage

1

Total users

21

Monthly users

1

Last modified

4 years ago

Google Drive Actor

The Google Drive actor can be used to manage files and folders.

Usage

The actor is used to perform operations, he will receive them via input.

Input

The input of the actor is JSON with the following parameters.

FieldTypeDescription
operationsArrayThe operations to execute
operations[*]ObjectOperations options, mainly it contains the type and other specific options (check the next section)
isSetupModeBooleanIf true operations will not get executed

Setup

Before you start using the actor for running operations, you will need to run it with the setup mode. To achieve that you just need to run it with the following input and follow the steps in the run log or you can check this article for authorization.

{
"isSetupMode": true
}

Operations

Operations are the main parameter for the input, they passed as objects and distinguished by type option. Option type can have one the following values: files-copy, and folders-delete. For each operation type there is specific options, those options are explained bellow for each type:

files-copy

FieldTypeDescription
sourceObjectRepresent the file(s) to copy
destinationStringThe full path on Google drive where the file(s) will be saved

Example:

{
"type": "files-copy",
"source": {
"type": "key-value-store",
"id": "IdOrName",
"forceCloud": true,
"files": [
{
"key": "my_spreadsheet",
"name": "My spreadsheet",
"options": {
"resource": {
"mimeType": "application/vnd.google-apps.spreadsheet"
},
"media": {
"mimeType": "text/csv"
}
}
},
{
"key": "my_image",
"name": "My Image",
"options": {
"media": {
"mimeType": "image/png"
}
}
}
]
},
"destination": "My actor files"
}

folders-delete

FieldTypeDescription
folderStringThe full path on Google drive of folder to be deleted

Example:

{
"type": "folders-delete",
"folder": "My Folder"
}

On this page

Share Actor: