Skip to content

Commit

Permalink
readiness for credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jun 20, 2024
1 parent 4305704 commit a5cb7c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gmail-exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ def get_credentials():
the OAuth2 flow is completed to obtain the new credentials.
"""

set_readiness("GET_CREDENTIALS")

SCOPES = 'https://www.googleapis.com/auth/gmail.readonly '

while not os.path.exists(args.clientSecretFile):
Expand All @@ -70,6 +72,7 @@ def get_credentials():
with open(args.credentialsPath, 'w', encoding='utf8') as token:
token.write(credentials.to_json())

set_readiness("GOT_CREDENTIALS")

return credentials

Expand Down

0 comments on commit a5cb7c7

Please sign in to comment.