@azure/cognitiveservices-newssearch package

Classes

NewsSearchClient
NewsSearchClientContext
NewsOperations

Class representing a NewsOperations.

Interfaces

Answer

Defines an answer.

Article

An interface representing Article.

CreativeWork

The most generic kind of creative work, including books, movies, photographs, software programs, etc.

ErrorModel

Defines the error that occurred.

ErrorResponse

The top-level response that represents a failed request.

Identifiable

Defines the identity of a resource.

ImageObject

Defines an image

MediaObject

Defines a media object.

News

Defines a news answer.

NewsArticle

Defines a news article.

NewsCategoryOptionalParams

Optional Parameters.

NewsSearchClientOptions

An interface representing NewsSearchClientOptions.

NewsSearchOptionalParams

Optional Parameters.

NewsTopic

An interface representing NewsTopic.

NewsTrendingOptionalParams

Optional Parameters.

Organization

Defines an organization.

Query

Defines a search query.

Response

Defines a response. All schemas that could be returned at the root of a response should inherit from this

ResponseBase

Response base

SearchResultsAnswer

Defines a search result answer.

Thing

Defines a thing.

TrendingTopics

An interface representing TrendingTopics.

VideoObject

Defines a video object that is relevant to the query.

Type Aliases

AnswerUnion

Contains the possible cases for Answer.

ArticleUnion

Contains the possible cases for Article.

CreativeWorkUnion

Contains the possible cases for CreativeWork.

ErrorCode

Defines values for ErrorCode. Possible values include: 'None', 'ServerError', 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization', 'InsufficientAuthorization'

ErrorSubCode

Defines values for ErrorSubCode. Possible values include: 'UnexpectedError', 'ResourceError', 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue', 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing', 'AuthorizationRedundancy', 'AuthorizationDisabled', 'AuthorizationExpired'

Freshness

Defines values for Freshness. Possible values include: 'Day', 'Week', 'Month'

IdentifiableUnion

Contains the possible cases for Identifiable.

MediaObjectUnion

Contains the possible cases for MediaObject.

NewsCategoryResponse

Contains response data for the category operation.

NewsSearchResponse

Contains response data for the search operation.

NewsTrendingResponse

Contains response data for the trending operation.

ResponseBaseUnion

Contains the possible cases for ResponseBase.

ResponseUnion

Contains the possible cases for Response.

SafeSearch

Defines values for SafeSearch. Possible values include: 'Off', 'Moderate', 'Strict'

SearchResultsAnswerUnion

Contains the possible cases for SearchResultsAnswer.

TextFormat

Defines values for TextFormat. Possible values include: 'Raw', 'Html'

ThingUnion

Contains the possible cases for Thing.