Skip to main content

Google Drive

Google Drive, a cloud-based storage service by Google, allows you to easily send your files to your Drive folders.

This integration allows you to effortlessly store, organize, and share your files with colleagues or clients through Google Drive's sharing features.

Setup

To send your videos directly to your Google Drive you will have to connect Shotstack to your Google Account. This will provide Shotstack with permissions to upload files to Google Drive on your behalf. We will only have access to the files that are created by Shotstack.

Login to the dashboard and navigate to the integrations page, find the Google Drive destination and click configure.

Click the Connect to Google Drive button and follow the prompts.

Google Drive Credentials

Integration

Basic integration

To send files to Google Drive add the following to the output parameter of the render payload:

"destinations": [{
"provider": "google-drive"
}]

The following will send the rendered files to a folder on your Google Drive with the ID 2t-eTY12LO8tzQLAwMug-fIrK_7AQBI6B. If the rendered file is an mp4, it will be named video.mp4:

"destinations": [{
"provider": "google-drive",
"options": {
"filename": "video",
"folderId": "2t-eTY12LO8tzQLAwMug-fIrK_7AQBI6B"
}
}]

You can retrieve the folder ID from the URL e.g. https://drive.google.com/drive/u/0/folders/2t-eTY12LO8tzQLAwMug-fIrK_7AQBI6B

Sending assets to multiple folders

It is also possible to send files to multiple folders with one request:

"destinations": [{
"provider": "google-drive",
"options": {
"folderId": "2t-eTY12LO8tzQLAwMug-fIrK_7AQBI6B"
}
},{
"provider": "google-drive",
"options": {
"folderId": "1t9yYms4_Y2u8k-YovnTCZNMjU_FkkNBh"
}
}]

This will send rendered assets to the two different folders. The folders must accessible by the account holders.

Opting out from the Shotstack destination

By default all generated files are sent to the Shotstack destination. If you are using S3 you may wish to opt out from hosting your videos with Shotstack using:

"destinations": [{
"provider": "google-drive",
"options": {
"folderId": "2t-eTY12LO8tzQLAwMug-fIrK_7AQBI6B"
}
},{
"provider": "shotstack",
"exclude": true
}]

This will send the generated video to Google Drive but not to Shotstack.