C# Class BuildIt.CognitiveServices.ImageSearchAPIV5Extensions

Extension methods for ImageSearchAPIV5.
Datei anzeigen Open project: builttoroam/BuildIt

Public Methods

Method Description
ImageInsights ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void

Get insights for an image sent in the POST body. <br/> <br/> See full documentation for this API <a target="_blank" href="https://msdn.microsoft.com/en-us/library/dn760791.aspx">here<a>

ImageInsightsAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task

Get insights for an image sent in the POST body. <br/> <br/> See full documentation for this API <a target="_blank" href="https://msdn.microsoft.com/en-us/library/dn760791.aspx">here<a>

Search ( this operations, double count = 10, double offset, string mkt = "en-us", string safeSearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void

Get relevant images for a given query.

SearchAsync ( this operations, double count = 10, double offset, string mkt = "en-us", string safeSearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task

Get relevant images for a given query.

Trending ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void

Get currently trending images.

TrendingAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task

Get currently trending images.

Method Details

ImageInsights() public static method

Get insights for an image sent in the POST body. <br/> <br/> See full documentation for this API <a target="_blank" href="https://msdn.microsoft.com/en-us/library/dn760791.aspx">here<a>
public static ImageInsights ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
return void

ImageInsightsAsync() public static method

Get insights for an image sent in the POST body. <br/> <br/> See full documentation for this API <a target="_blank" href="https://msdn.microsoft.com/en-us/library/dn760791.aspx">here<a>
public static ImageInsightsAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
return System.Threading.Tasks.Task

Search() public static method

Get relevant images for a given query.
public static Search ( this operations, double count = 10, double offset, string mkt = "en-us", string safeSearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
count double /// The number of image results to return in the response. The actual number /// delivered may be less than requested. ///
offset double /// The zero-based offset that indicates the number of image results to skip /// before returning results. ///
mkt string /// The market where the results come from. Typically, this is the country /// where the user is making the request from; however, it could be a /// different country if the user is not located in a country where Bing /// delivers results. The market must be in the form {language code}-{country /// code}. For example, en-US. /// /// <br> /// <br> /// Full list of supported markets: /// <br> /// es-AR,en-AU,de-AT,nl-BE,fr-BE,pt-BR,en-CA,fr-CA,es-CL,da-DK,fi-FI,fr-FR,de-DE,zh-HK,en-IN,en-ID,en-IE,it-IT,ja-JP,ko-KR,en-MY,es-MX,nl-NL,en-NZ,no-NO,zh-CN,pl-PL,pt-PT,en-PH,ru-RU,ar-SA,en-ZA,es-ES,sv-SE,fr-CH,de-CH,zh-TW,tr-TR,en-GB,en-US,es-US. /// Possible values include: 'en-us' ///
safeSearch string /// A filter used to filter results for adult content. Possible values /// include: 'Off', 'Moderate', 'Strict' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
return void

SearchAsync() public static method

Get relevant images for a given query.
public static SearchAsync ( this operations, double count = 10, double offset, string mkt = "en-us", string safeSearch = "Moderate", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
count double /// The number of image results to return in the response. The actual number /// delivered may be less than requested. ///
offset double /// The zero-based offset that indicates the number of image results to skip /// before returning results. ///
mkt string /// The market where the results come from. Typically, this is the country /// where the user is making the request from; however, it could be a /// different country if the user is not located in a country where Bing /// delivers results. The market must be in the form {language code}-{country /// code}. For example, en-US. /// /// <br> /// <br> /// Full list of supported markets: /// <br> /// es-AR,en-AU,de-AT,nl-BE,fr-BE,pt-BR,en-CA,fr-CA,es-CL,da-DK,fi-FI,fr-FR,de-DE,zh-HK,en-IN,en-ID,en-IE,it-IT,ja-JP,ko-KR,en-MY,es-MX,nl-NL,en-NZ,no-NO,zh-CN,pl-PL,pt-PT,en-PH,ru-RU,ar-SA,en-ZA,es-ES,sv-SE,fr-CH,de-CH,zh-TW,tr-TR,en-GB,en-US,es-US. /// Possible values include: 'en-us' ///
safeSearch string /// A filter used to filter results for adult content. Possible values /// include: 'Off', 'Moderate', 'Strict' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
return System.Threading.Tasks.Task

Trending() public static method

Get currently trending images.
public static Trending ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
return void

TrendingAsync() public static method

Get currently trending images.
public static TrendingAsync ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
return System.Threading.Tasks.Task