BingWebSearchManager Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.search.websearch.BingWebSearchManager

public class BingWebSearchManager

Entry point to Azure Cognitive Services Bing Web Search manager.

Constructor Summary

Constructor Description
BingWebSearchManager()

Method Summary

Modifier and Type Method and Description
static BingWebSearchAPI authenticate(RestClient restClient)

Initializes an instance of Bing Web Search API client.

static BingWebSearchAPI authenticate(ServiceClientCredentials credentials)

Initializes an instance of Bing Web Search API client.

static BingWebSearchAPI authenticate(String subscriptionKey)

Initializes an instance of Bing Web Search API client.

static BingWebSearchAPI authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Bing Web Search API client.

static BingWebSearchAPI authenticate(String baseUrl, String subscriptionKey)

Initializes an instance of Bing Web Search API client.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

BingWebSearchManager

public BingWebSearchManager()

Method Details

authenticate

public static BingWebSearchAPI authenticate(RestClient restClient)

Initializes an instance of Bing Web Search API client.

Parameters:

restClient - the REST client to connect to Azure.

Returns:

the Bing Web Search API client

authenticate

public static BingWebSearchAPI authenticate(ServiceClientCredentials credentials)

Initializes an instance of Bing Web Search API client.

Parameters:

credentials - the management credentials for Azure

Returns:

the Bing Web Search API client

authenticate

public static BingWebSearchAPI authenticate(String subscriptionKey)

Initializes an instance of Bing Web Search API client.

Parameters:

subscriptionKey - the Bing Search API key

Returns:

the Bing Web Search API client

authenticate

public static BingWebSearchAPI authenticate(String baseUrl, ServiceClientCredentials credentials)

Initializes an instance of Bing Web Search API client.

Parameters:

baseUrl - the base URL of the service
credentials - the management credentials for Azure

Returns:

the Bing Web Search API client

authenticate

public static BingWebSearchAPI authenticate(String baseUrl, String subscriptionKey)

Initializes an instance of Bing Web Search API client.

Parameters:

baseUrl - the URL of the service
subscriptionKey - the Bing Search API key

Returns:

the Bing News Search API client

Applies to