Skip to main content
Cliente para operaciones de trends This client provides methods for interacting with the trends endpoints of the X API. It handles authentication, request formatting, and response parsing for all trends related operations. zed](/xdks/typescript/reference/classes/TrendsClient#getpersonalized)

Constructores

constructor

new TrendsClient(client): TrendsClient Creates a new trends client instance

Parámetros

Devuelve

TrendsClient

Definido en

trends/client.ts:90

Métodos

getByWoeid

getByWoeid(woeid, options): Promise<Response> Get Trends by WOEID Retrieves trending topics for a specific location identified by its WOEID.

Parámetros

Devuelve

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

Definido en

trends/client.ts:135 getByWoeid(woeid, options?): Promise<Get2TrendsByWoeidWoeidResponse>

Parámetros

Devuelve

Promise<Get2TrendsByWoeidWoeidResponse>

Definido en

trends/client.ts:148

getPersonalized

getPersonalized(options): Promise<Response> Get personalized Trends Retrieves personalized trending topics for the authenticated user.

Parámetros

Devuelve

Promise<Response> Promise resolving to the API response, or raw Response if requestOptions.raw is true

Definido en

trends/client.ts:285 getPersonalized(options?): Promise<Get2UsersPersonalizedTrendsResponse>

Parámetros

Devuelve

Promise<Get2UsersPersonalizedTrendsResponse>

Definido en

trends/client.ts:294