mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
924 B
924 B
Google Spreadsheet Integration
Setup
Run gcloud init to setup a new profile:
gcloud init
Enable Sheet API:
gcloud services enable sheets.googleapis.com
You will need to setup a service account for your bbgo application, check the following documentation to setup the authentication:
https://developers.google.com/identity/protocols/oauth2/service-account
And
https://developers.google.com/workspace/guides/create-credentials
Download the JSON token file and store it in a safe place.
Setting up service account permissions
Go to Google Workspace and Add "Manage Domain Wide Delegation", add you client and with the following scopes:
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.readonly
https://www.googleapis.com/auth/spreadsheets
https://www.googleapis.com/auth/spreadsheets.readonly