Google Drive avatar
Google Drive
Deprecated
View all Actors
This Actor is deprecated

This Actor is unavailable because the developer has decided to deprecate it. Would you like to try a similar Actor instead?

See alternative Actors
Google Drive

Google Drive

yir/google-drive

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.

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.

1{
2  "isSetupMode": true
3}

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:

1{
2      "type": "files-copy",
3      "source": {
4        "type": "key-value-store",
5        "id": "IdOrName",
6        "forceCloud": true,
7        "files": [
8            {
9              "key": "my_spreadsheet",
10              "name": "My spreadsheet",
11              "options": {
12                "resource": {
13                  "mimeType": "application/vnd.google-apps.spreadsheet"
14                },
15                "media": {
16                  "mimeType": "text/csv"
17                }
18              }
19            },
20            {
21              "key": "my_image",
22              "name": "My Image",
23              "options": {
24                "media": {
25                  "mimeType": "image/png"
26                }
27              }
28            }
29        ]
30      },
31      "destination": "My actor files"
32    }

folders-delete

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

Example:

1{
2      "type": "folders-delete",
3      "folder": "My Folder"
4}
Developer
Maintained by Community
Categories