We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To the extent that this is sample code, clarity should be considered integral and fundamental.
Lack of clarity is an "issue". This "issue" applies to most google quickstart.py. All of those can benefit from this.
main() is doing two things:
So, on top of main() create a function called: obtain_credentials(scopes). It would return creds.
main() would then first do creds = obtain_credentials(scopes) and then comes the service usage part.
This way, the whole thing is a lot more clear and less duplicated (across all quickstart.py-s)
See above.
See Above.
python --version
The text was updated successfully, but these errors were encountered:
sqrrrl
No branches or pull requests
Summary
To the extent that this is sample code, clarity should be considered integral and fundamental.
Lack of clarity is an "issue". This "issue" applies to most google quickstart.py. All of those can benefit from this.
main() is doing two things:
So, on top of main() create a function called: obtain_credentials(scopes).
It would return creds.
main() would then first do
creds = obtain_credentials(scopes)
and then comes the service usage part.
This way, the whole thing is a lot more clear and less duplicated (across all quickstart.py-s)
Expected Behavior
See above.
Actual Behavior
See Above.
Steps to Reproduce the Problem
See Above.
Specifications
python --version
) = ALLThe text was updated successfully, but these errors were encountered: