Skip to content

Commit 3f35565

Browse files
authored
Merge pull request #52187 from cronoik/patch-1
fixed invalid python
2 parents 4c9a3cd + 425a4ee commit 3f35565

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)