-
Notifications
You must be signed in to change notification settings - Fork 6.6k
docs(auth-samples): add API Key auth samples and tests #8455 8000
New issue
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
Conversation
Here is the summary of changes. You are about to add 9 region tags.
This comment is generated by snippet-bot.
|
Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
Co-authored-by: Dan Lee <71398022+dandhlee@users.noreply.github.com>
""" | ||
|
||
# Initialize the Language Service client and set the API key and the quota project id. | ||
client = language_v1.LanguageServiceClient(client_options={"api_key": api_key_string, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api_key
client option won't work until googleapis/google-auth-library-python#1184 is released
@@ -1,3 +1,7 @@ | |||
google-api-python-client==2.47.0 | |||
google-auth-httplib2==0.1.0 | |||
google-auth==2.6.2 | |||
google-auth==2.11.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update google-auth
after googleapis/google-auth-library-python#1184 is released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending updated based on Sijun's comment.
googleapis/google-auth-library-python#1184 released. Hence merging this PR. |
Added samples and tests for API key samples.