Skip to content

Commit 425a4ee

Browse files
authored
fixed invalid python
you can't use a positional argument after a keyword argument
1 parent e9bac10 commit 425a4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cognitive-services/Bing-Web-Search/includes/quickstarts/web-search-client-library-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ If the response contains web pages, images, news, or videos, the first result fo
9090
subscription_key = "YOUR_SUBSCRIPTION_KEY"
9191

9292
# Instantiate the client and replace with your endpoint.
93-
client = WebSearchClient(endpoint="YOUR_ENDPOINT", CognitiveServicesCredentials(subscription_key))
93+
client = WebSearchClient(endpoint="YOUR_ENDPOINT", credentials=CognitiveServicesCredentials(subscription_key))
9494

9595
# Make a request. Replace Yosemite if you'd like.
9696
web_data = client.web.search(query="Yosemite")

0 commit comments

Comments
 (0)