Skip to content

Commit

Permalink
Merge pull request #356 from JMensch/master
Browse files Browse the repository at this point in the history
Update oauth2client documentation to reflect new semantics
  • Loading branch information
msuozzo committed Mar 28, 2016
2 parents f5c874b + 5a04fab commit 4c80deb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions docs/oauth2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,21 @@ Depending on your system setup you may need to install PyOpenSSL:

6. Now you can read this file, and use the data when constructing your credentials:

::

import gspread
from oauth2client.service_account import ServiceAccountCredentials

scope = ['https://spreadsheets.google.com/feeds']

credentials = ServiceAccountCredentials.from_json_keyfile_name('gspread-april-2cd … ba4.json', scope)

gc = gspread.authorize(credentials)

wks = gc.open("Where is the money Lebowski?").sheet1

If using oauth2client < 2.0.0

::

import json
Expand Down

0 comments on commit 4c80deb

Please sign in to comment.