Web class

Class representing a Web.

Constructors

Web(WebSearchClientContext)

Create a Web.

Methods

search(string, ServiceCallback<SearchResponse>)
search(string, WebSearchOptionalParams)
search(string, WebSearchOptionalParams, ServiceCallback<SearchResponse>)

Constructor Details

Web(WebSearchClientContext)

Create a Web.

new Web(client: WebSearchClientContext)

Parameters

client
WebSearchClientContext

Reference to the service client.

Method Details

search(string, ServiceCallback<SearchResponse>)

function search(query: string, callback: ServiceCallback<SearchResponse>)

Parameters

query

string

The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.

callback

ServiceCallback<SearchResponse>

The callback

function search(query: string, options?: WebSearchOptionalParams): Promise<WebSearchResponse>

Parameters

query

string

The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.

options
WebSearchOptionalParams

The optional parameters

Returns

Promise<Models.WebSearchResponse>

search(string, WebSearchOptionalParams, ServiceCallback<SearchResponse>)

function search(query: string, options: WebSearchOptionalParams, callback: ServiceCallback<SearchResponse>)

Parameters

query

string

The user's search query term. The term may not be empty. The term may contain Bing Advanced Operators. For example, to limit results to a specific domain, use the site: operator.

options
WebSearchOptionalParams

The optional parameters

callback

ServiceCallback<SearchResponse>

The callback