File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818"""
1919# [START output_json_python]
2020from __future__ import print_function
21+ import json
2122from apiclient import discovery
2223from httplib2 import Http
2324from oauth2client import client
2425from oauth2client import file
2526from oauth2client import tools
26- import json
2727
2828# Set doc ID, as found at `https://docs.google.com/document/d/YOUR_DOC_ID/edit`
29- DOCUMENT_ID = YOUR_DOC_ID
29+ DOCUMENT_ID = ' YOUR_DOC_ID'
3030
3131# Set the scopes and discovery info
3232SCOPES = 'https://www.googleapis.com/auth/documents.readonly'
33- DISCOVERY_DOC = 'https://docs.googleapis.com/$discovery/rest?version=v1&key=<YOUR_API_KEY>'
33+ DISCOVERY_DOC = ('https://docs.googleapis.com/$discovery/rest?'
34+ 'version=v1'
35+ '&key=<YOUR_API_KEY>' )
3436
3537# Initialize credentials and instantiate Docs API service
3638store = file .Storage ('token.json' )
You can’t perform that action at this time.
0 commit comments