Skip to content

Commit abd4bb8

Browse files
author
Eric Koleda
committed
Clarify where token.json comes from.
1 parent 840ba28 commit abd4bb8

File tree

14 files changed

+42
-0
lines changed

14 files changed

+42
-0
lines changed

admin_sdk/directory/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def main():
2525
"""Shows basic usage of the Admin SDK Directory API.
2626
Prints the emails and names of the first 10 users in the domain.
2727
"""
28+
# The file token.json stores the user's access and refresh tokens, and is
29+
# created automatically when the authorization flow completes for the first
30+
# time.
2831
store = file.Storage('token.json')
2932
creds = store.get()
3033
if not creds or creds.invalid:

admin_sdk/reports/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def main():
2525
"""Shows basic usage of the Admin SDK Reports API.
2626
Prints the time, email, and name of the last 10 login events in the domain.
2727
"""
28+
# The file token.json stores the user's access and refresh tokens, and is
29+
# created automatically when the authorization flow completes for the first
30+
# time.
2831
store = file.Storage('token.json')
2932
creds = store.get()
3033
if not creds or creds.invalid:

admin_sdk/reseller/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def main():
2525
"""Calls the Admin SDK Reseller API. Prints the customer ID, SKU ID,
2626
and plan name of the first 10 subscriptions managed by the domain.
2727
"""
28+
# The file token.json stores the user's access and refresh tokens, and is
29+
# created automatically when the authorization flow completes for the first
30+
# time.
2831
store = file.Storage('token.json')
2932
creds = store.get()
3033
if not creds or creds.invalid:

apps_script/quickstart/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
def main():
4444
"""Calls the Apps Script API.
4545
"""
46+
# The file token.json stores the user's access and refresh tokens, and is
47+
# created automatically when the authorization flow completes for the first
48+
# time.
4649
store = file.Storage('token.json')
4750
creds = store.get()
4851
if not creds or creds.invalid:

calendar/quickstart/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def main():
2626
"""Shows basic usage of the Google Calendar API.
2727
Prints the start and name of the next 10 events on the user's calendar.
2828
"""
29+
# The file token.json stores the user's access and refresh tokens, and is
30+
# created automatically when the authorization flow completes for the first
31+
# time.
2932
store = file.Storage('token.json')
3033
creds = store.get()
3134
if not creds or creds.invalid:

classroom/quickstart/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def main():
2525
"""Shows basic usage of the Classroom API.
2626
Prints the names of the first 10 courses the user has access to.
2727
"""
28+
# The file token.json stores the user's access and refresh tokens, and is
29+
# created automatically when the authorization flow completes for the first
30+
# time.
2831
store = file.Storage('token.json')
2932
creds = store.get()
3033
if not creds or creds.invalid:

drive/activity/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def main():
2626
"""Shows basic usage of the Drive Activity API.
2727
Prints information about the last 10 events that occured the user's Drive.
2828
"""
29+
# The file token.json stores the user's access and refresh tokens, and is
30+
# created automatically when the authorization flow completes for the first
31+
# time.
2932
store = file.Storage('token.json')
3033
creds = store.get()
3134
if not creds or creds.invalid:

drive/quickstart/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def main():
2525
"""Shows basic usage of the Drive v3 API.
2626
Prints the names and ids of the first 10 files the user has access to.
2727
"""
28+
# The file token.json stores the user's access and refresh tokens, and is
29+
# created automatically when the authorization flow completes for the first
30+
# time.
2831
store = file.Storage('token.json')
2932
creds = store.get()
3033
if not creds or creds.invalid:

gmail/quickstart/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def main():
2525
"""Shows basic usage of the Gmail API.
2626
Lists the user's Gmail labels.
2727
"""
28+
# The file token.json stores the user's access and refresh tokens, and is
29+
# created automatically when the authorization flow completes for the first
30+
# time.
2831
store = file.Storage('token.json')
2932
creds = store.get()
3033
if not creds or creds.invalid:

people/quickstart/quickstart.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ def main():
2525
"""Shows basic usage of the People API.
2626
Prints the name of the first 10 connections.
2727
"""
28+
# The file token.json stores the user's access and refresh tokens, and is
29+
# created automatically when the authorization flow completes for the first
30+
# time.
2831
store = file.Storage('token.json')
2932
creds = store.get()
3033
if not creds or creds.invalid:

0 commit comments

Comments
 (0)