public interface BingNews
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BingNews.BingNewsCategoryDefinition
The entirety of category definition.
|
static interface |
BingNews.BingNewsCategoryDefinitionStages
Grouping of category definition stages.
|
static interface |
BingNews.BingNewsSearchDefinition
The entirety of search definition.
|
static interface |
BingNews.BingNewsSearchDefinitionStages
Grouping of search definition stages.
|
static interface |
BingNews.BingNewsTrendingDefinition
The entirety of trending definition.
|
static interface |
BingNews.BingNewsTrendingDefinitionStages
Grouping of trending definition stages.
|
| Modifier and Type | Method and Description |
|---|---|
BingNews.BingNewsCategoryDefinitionStages.WithExecute |
category()
The News Category API lets lets you search on Bing and get back a list of top news articles by category.
|
NewsModel |
category(CategoryOptionalParameter categoryOptionalParameter)
The News Category API lets lets you search on Bing and get back a list of top news articles by category.
|
rx.Observable<NewsModel> |
categoryAsync(CategoryOptionalParameter categoryOptionalParameter)
The News Category API lets lets you search on Bing and get back a list of top news articles by category.
|
BingNews.BingNewsSearchDefinitionStages.WithQuery |
search()
The News Search API lets you send a search query to Bing and get back a list of news that are relevant to
the search query.
|
NewsModel |
search(String query,
SearchOptionalParameter searchOptionalParameter)
The News Search API lets you send a search query to Bing and get back a list of news that are relevant to
the search query.
|
rx.Observable<NewsModel> |
searchAsync(String query,
SearchOptionalParameter searchOptionalParameter)
The News Search API lets you send a search query to Bing and get back a list of news that are relevant to
the search query.
|
BingNews.BingNewsTrendingDefinitionStages.WithExecute |
trending()
The News Trending Topics API lets lets you search on Bing and get back a list of trending news topics that
are currently trending on Bing.
|
TrendingTopics |
trending(TrendingOptionalParameter trendingOptionalParameter)
The News Trending Topics API lets lets you search on Bing and get back a list of trending news topics that
are currently trending on Bing.
|
rx.Observable<TrendingTopics> |
trendingAsync(TrendingOptionalParameter trendingOptionalParameter)
The News Trending Topics API lets lets you search on Bing and get back a list of trending news topics that
are currently trending on Bing.
|
NewsModel search(String query, SearchOptionalParameter searchOptionalParameter)
query - The user's search query string. The query string cannot be empty. The query string may contain [Bing
Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit news to a
specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. Use this
parameter only with the News Search API. Do not specify this parameter when calling the Trending Topics API
or News Category API.searchOptionalParameter - the object representing the optional parameters to be set before calling this APIIllegalArgumentException - thrown if parameters fail the validationErrorResponseException - thrown if the request is rejected by serverRuntimeException - all other wrapped checked exceptions if the request fails to be sentrx.Observable<NewsModel> searchAsync(String query, SearchOptionalParameter searchOptionalParameter)
query - The user's search query string. The query string cannot be empty. The query string may contain [Bing
Advanced Operators](http://msdn.microsoft.com/library/ff795620.aspx). For example, to limit news to a
specific domain, use the [site:](http://msdn.microsoft.com/library/ff795613.aspx) operator. Use this
parameter only with the News Search API. Do not specify this parameter when calling the Trending Topics API
or News Category API.searchOptionalParameter - the object representing the optional parameters to be set before calling this APIIllegalArgumentException - thrown if parameters fail the validationBingNews.BingNewsSearchDefinitionStages.WithQuery search()
NewsModel category(CategoryOptionalParameter categoryOptionalParameter)
categoryOptionalParameter - the object representing the optional parameters to be set before calling this APIIllegalArgumentException - thrown if parameters fail the validationErrorResponseException - thrown if the request is rejected by serverRuntimeException - all other wrapped checked exceptions if the request fails to be sentrx.Observable<NewsModel> categoryAsync(CategoryOptionalParameter categoryOptionalParameter)
categoryOptionalParameter - the object representing the optional parameters to be set before calling this APIIllegalArgumentException - thrown if parameters fail the validationBingNews.BingNewsCategoryDefinitionStages.WithExecute category()
TrendingTopics trending(TrendingOptionalParameter trendingOptionalParameter)
trendingOptionalParameter - the object representing the optional parameters to be set before calling this APIIllegalArgumentException - thrown if parameters fail the validationErrorResponseException - thrown if the request is rejected by serverRuntimeException - all other wrapped checked exceptions if the request fails to be sentrx.Observable<TrendingTopics> trendingAsync(TrendingOptionalParameter trendingOptionalParameter)
trendingOptionalParameter - the object representing the optional parameters to be set before calling this APIIllegalArgumentException - thrown if parameters fail the validationBingNews.BingNewsTrendingDefinitionStages.WithExecute trending()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/