Integrations
Google Drive
Connect Google Drive
Authentication methods
- OAuth 2.0
Access to Google Drive Python SDK
Dealing with files over REST API can be challenging. Therefore, for the Google Drive connector, we make it easy to use the published Google Drive Python SDK.
To access the service
object necessary to make the calls, simply add a Strada action and give it a name. That strada action will have a .service
attribute.
From there, you can invoke any of the Python SDK methods.
Uploading a file
Once you have added a Google Drive action and given it a name of DriveAction
, you can use DriveAction.service
to upload files.
Files should be managed in-memory. Therefore use io.BytesIO
and
MediaIoBaseUpload
when applicable.
Listing files
Once you have added a Google Drive action and given it a name of DriveAction
, you can use DriveAction.service
to upload files.