你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebSearchClient Class

The Web Search API lets you send a search query to Bing and get back search results that include links to webpages, images, and more.

Inheritance
msrest.service_client.SDKClient
WebSearchClient

Constructor

WebSearchClient(endpoint, credentials)

Parameters

Name Description
endpoint
Required
str

Supported Cognitive Services endpoints (protocol and hostname, for example: "https://westus.api.cognitive.microsoft.com", "https://api.cognitive.microsoft.com").

credentials
Required

Subscription credentials which uniquely identify client subscription.

Variables

Name Description
config

Configuration for client.

web

Web operations

Methods

close

Close the client if keep_alive is True.

close

Close the client if keep_alive is True.

close() -> None