azure.cognitiveservices.search.newssearch package¶
Submodules¶
Module contents¶
-
class
azure.cognitiveservices.search.newssearch.
NewsSearchClient
(endpoint, credentials)[source]¶ Bases:
msrest.service_client.SDKClient
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. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web).
- Variables
config (NewsSearchClientConfiguration) – Configuration for client.
news (azure.cognitiveservices.search.newssearch.operations.NewsOperations) – News operations
- Parameters
endpoint (str) – Supported Cognitive Services endpoints (protocol and hostname, for example: “https://westus.api.cognitive.microsoft.com”, “https://api.cognitive.microsoft.com”).
credentials (None) – Subscription credentials which uniquely identify client subscription.
-
class
azure.cognitiveservices.search.newssearch.
NewsSearchClientConfiguration
(endpoint, credentials)[source]¶ Bases:
msrest.configuration.Configuration
Configuration for NewsSearchClient Note that all parameters used to create this instance are saved as instance attributes.
- Parameters
endpoint (str) – Supported Cognitive Services endpoints (protocol and hostname, for example: “https://westus.api.cognitive.microsoft.com”, “https://api.cognitive.microsoft.com”).
credentials (None) – Subscription credentials which uniquely identify client subscription.