Constructores
constructor
• new NewsClient(client): NewsClient
Creates a new news client instance
Parámetros
Devuelve
NewsClient
Definido en
news/client.ts:96Métodos
get
▸ get(id, options): Promise<Response>
Get news stories by ID
Retrieves news story by its ID.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
news/client.ts:141 ▸ get(id, options?): Promise<Get2NewsIdResponse>
Parámetros
Devuelve
Promise<Get2NewsIdResponse>
Definido en
news/client.ts:154search
▸ search(query, options): Promise<Response>
Search News
Retrieves a list of News stories matching the specified search query.
Parámetros
Devuelve
Promise<Response>
Promise resolving to the API response, or raw Response if requestOptions.raw is true
Definido en
news/client.ts:288 ▸ search(query, options?): Promise<Get2NewsSearchResponse>
Parámetros
Devuelve
Promise<Get2NewsSearchResponse>