BingCustomSearchManager.authenticate Method
Definition
Overloads
| authenticate(RestClient restClient) |
Initializes an instance of Bing Custom Search API client. |
| authenticate(ServiceClientCredentials credentials) |
Initializes an instance of Bing Custom Search API client. |
| authenticate(String subscriptionKey) |
Initializes an instance of Bing Custom Search API client. |
| authenticate(String baseUrl, ServiceClientCredentials credentials) |
Initializes an instance of Bing Custom Search API client. |
| authenticate(String baseUrl, String subscriptionKey) |
Initializes an instance of Bing Custom Search API client. |
authenticate(RestClient restClient)
Initializes an instance of Bing Custom Search API client.
public static BingCustomSearchAPI authenticate(RestClient restClient)
Parameters
- restClient
- com.microsoft.rest.RestClient
the REST client to connect to Azure.
Returns
the Bing Custom Search API client
authenticate(ServiceClientCredentials credentials)
Initializes an instance of Bing Custom Search API client.
public static BingCustomSearchAPI authenticate(ServiceClientCredentials credentials)
Parameters
- credentials
- com.microsoft.rest.credentials.ServiceClientCredentials
the management credentials for Azure
Returns
the Bing Custom Search API client
authenticate(String subscriptionKey)
Initializes an instance of Bing Custom Search API client.
public static BingCustomSearchAPI authenticate(String subscriptionKey)
Parameters
- subscriptionKey
- java.lang.String
the Bing Search API key
Returns
the Bing Custom Search API client
authenticate(String baseUrl, ServiceClientCredentials credentials)
Initializes an instance of Bing Custom Search API client.
public static BingCustomSearchAPI authenticate(String baseUrl, ServiceClientCredentials credentials)
Parameters
- baseUrl
- java.lang.String
the base URL of the service
- credentials
- com.microsoft.rest.credentials.ServiceClientCredentials
the management credentials for Azure
Returns
the Bing Custom Search API client
authenticate(String baseUrl, String subscriptionKey)
Initializes an instance of Bing Custom Search API client.
public static BingCustomSearchAPI authenticate(String baseUrl, String subscriptionKey)
Parameters
- baseUrl
- java.lang.String
the base URL of the service
- subscriptionKey
- java.lang.String
the Bing Search API key
Returns
the Bing Custom Search API client