Created
December 20, 2014 02:06
-
-
Save jheasly/ddd2628e0be6771c28ac to your computer and use it in GitHub Desktop.
Attempt to connect to Tarbell Google spreadsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import getpass | |
import httplib2 | |
import gspread | |
from apiclient import discovery | |
from oauth2client import keyring_storage | |
''' | |
Almost entirely cribbed from tarbell/oauth.py | |
''' | |
storage = keyring_storage.Storage('tarbell', getpass.getuser()) | |
credentials = storage.get() | |
gc = gspread.authorize(credentials) | |
sh = gc.open_by_key('[spreadsheet-key-goes-here]') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The above throws this error: