C# Класс BuildIt.CognitiveServices.NewsSearchAPIV5Extensions

Extension methods for NewsSearchAPIV5.
Показать файл Открыть проект

Открытые методы

Метод Описание
CategoryNews ( this operations, string category = default(string), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void

Returns news for a provided category.

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

Returns news for a provided category.

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

Get news articles relevant for a given query.

SearchAsync ( this operations, string count = "10", string offset = "0", 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 news articles relevant for a given query.

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

Get trending topics identified by Bing. These are the same topics shown in the banner at the bottom of the Bing home page.

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

Get trending topics identified by Bing. These are the same topics shown in the banner at the bottom of the Bing home page.

Описание методов

CategoryNews() публичный статический Метод

Returns news for a provided category.
public static CategoryNews ( this operations, string category = default(string), string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
category string /// Specifies which category of news articles the caller wants returned. /// Possible values include: 'Business', 'Entertainment', 'Health', /// 'Politics', 'ScienceAndTechnology', 'Sports', 'US/UK', 'World' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
Результат void

CategoryNewsAsync() публичный статический Метод

Returns news for a provided category.
public static CategoryNewsAsync ( this operations, string category = default(string), 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. ///
category string /// Specifies which category of news articles the caller wants returned. /// Possible values include: 'Business', 'Entertainment', 'Health', /// 'Politics', 'ScienceAndTechnology', 'Sports', 'US/UK', 'World' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
Результат System.Threading.Tasks.Task

Search() публичный статический Метод

Get news articles relevant for a given query.
public static Search ( this operations, string count = "10", string offset = "0", 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 string /// The number of news results to return in the response. The actual number /// delivered may be less than requested. Possible values include: '10' ///
offset string /// The zero-based offset that indicates the number of news results to skip /// before returning results. Possible values include: '0' ///
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 ///
Результат void

SearchAsync() публичный статический Метод

Get news articles relevant for a given query.
public static SearchAsync ( this operations, string count = "10", string offset = "0", 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 string /// The number of news results to return in the response. The actual number /// delivered may be less than requested. Possible values include: '10' ///
offset string /// The zero-based offset that indicates the number of news results to skip /// before returning results. Possible values include: '0' ///
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. ///
Результат System.Threading.Tasks.Task

TrendingTopics() публичный статический Метод

Get trending topics identified by Bing. These are the same topics shown in the banner at the bottom of the Bing home page.
public static TrendingTopics ( 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 ///
Результат void

TrendingTopicsAsync() публичный статический Метод

Get trending topics identified by Bing. These are the same topics shown in the banner at the bottom of the Bing home page.
public static TrendingTopicsAsync ( 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. ///
Результат System.Threading.Tasks.Task