Skip to content

Instantly share code, notes, and snippets.

@bengineer19
Created September 13, 2020 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bengineer19/628e1b3a9d5bb215c918719bb314e319 to your computer and use it in GitHub Desktop.
Save bengineer19/628e1b3a9d5bb215c918719bb314e319 to your computer and use it in GitHub Desktop.
Python Google Sheets API
import json
import os
from google.oauth2 import service_account
service_account_info = json.loads(os.getenv('GSHEETS_AUTH'))
creds = service_account.Credentials.from_service_account_info(
service_account_info)
service = discovery.build('sheets', 'v4', credentials=creds)
# Do cool stuff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment