ImagesOperations class

Class representing a ImagesOperations.

Constructors

ImagesOperations(ImageSearchClientContext)

Create a ImagesOperations.

Methods

details(string, ImagesDetailsOptionalParams)
details(string, ImagesDetailsOptionalParams, ServiceCallback<ImageInsights>)
details(string, ServiceCallback<ImageInsights>)
search(string, ImagesSearchOptionalParams)
search(string, ImagesSearchOptionalParams, ServiceCallback<Images>)
search(string, ServiceCallback<Images>)
trending(ImagesTrendingOptionalParams)
trending(ImagesTrendingOptionalParams, ServiceCallback<TrendingImages>)
trending(ServiceCallback<TrendingImages>)

Constructor Details

ImagesOperations(ImageSearchClientContext)

Create a ImagesOperations.

new ImagesOperations(client: ImageSearchClientContext)

Parameters

client
ImageSearchClientContext

Reference to the service client.

Method Details

details(string, ImagesDetailsOptionalParams)

function details(query: string, options?: ImagesDetailsOptionalParams): Promise<ImagesDetailsResponse>

Parameters

query

string

The user's search query term. The term cannot be empty. The term may contain Bing Advanced Operators. For example, to limit images to a specific domain, use the site: operator. To help improve relevance of an insights query (see insightsToken), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API.

options
ImagesDetailsOptionalParams

The optional parameters

Returns

Promise<Models.ImagesDetailsResponse>

details(string, ImagesDetailsOptionalParams, ServiceCallback<ImageInsights>)

function details(query: string, options: ImagesDetailsOptionalParams, callback: ServiceCallback<ImageInsights>)

Parameters

query

string

The user's search query term. The term cannot be empty. The term may contain Bing Advanced Operators. For example, to limit images to a specific domain, use the site: operator. To help improve relevance of an insights query (see insightsToken), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API.

options
ImagesDetailsOptionalParams

The optional parameters

callback

ServiceCallback<ImageInsights>

The callback

details(string, ServiceCallback<ImageInsights>)

function details(query: string, callback: ServiceCallback<ImageInsights>)

Parameters

query

string

The user's search query term. The term cannot be empty. The term may contain Bing Advanced Operators. For example, to limit images to a specific domain, use the site: operator. To help improve relevance of an insights query (see insightsToken), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API.

callback

ServiceCallback<ImageInsights>

The callback

function search(query: string, options?: ImagesSearchOptionalParams): Promise<ImagesSearchResponse>

Parameters

query

string

The user's search query term. The term cannot be empty. The term may contain Bing Advanced Operators. For example, to limit images to a specific domain, use the site: operator. To help improve relevance of an insights query (see insightsToken), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API.

options
ImagesSearchOptionalParams

The optional parameters

Returns

Promise<Models.ImagesSearchResponse>

search(string, ImagesSearchOptionalParams, ServiceCallback<Images>)

function search(query: string, options: ImagesSearchOptionalParams, callback: ServiceCallback<Images>)

Parameters

query

string

The user's search query term. The term cannot be empty. The term may contain Bing Advanced Operators. For example, to limit images to a specific domain, use the site: operator. To help improve relevance of an insights query (see insightsToken), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API.

options
ImagesSearchOptionalParams

The optional parameters

callback

ServiceCallback<Images>

The callback

search(string, ServiceCallback<Images>)

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

Parameters

query

string

The user's search query term. The term cannot be empty. The term may contain Bing Advanced Operators. For example, to limit images to a specific domain, use the site: operator. To help improve relevance of an insights query (see insightsToken), you should always include the user's query term. Use this parameter only with the Image Search API.Do not specify this parameter when calling the Trending Images API.

callback

ServiceCallback<Images>

The callback

function trending(options?: ImagesTrendingOptionalParams): Promise<ImagesTrendingResponse>

Parameters

options
ImagesTrendingOptionalParams

The optional parameters

Returns

Promise<Models.ImagesTrendingResponse>

function trending(options: ImagesTrendingOptionalParams, callback: ServiceCallback<TrendingImages>)

Parameters

options
ImagesTrendingOptionalParams

The optional parameters

callback

ServiceCallback<TrendingImages>

The callback

function trending(callback: ServiceCallback<TrendingImages>)

Parameters

callback

ServiceCallback<TrendingImages>

The callback