Submódulos
Contenido del módulo
This module provides access to the trends endpoints of the X API and serves as the main entry point for all trends-related functionality.class xdk.trends.TrendsClient
Cliente para operaciones de trends
Parámetros
Client
__init__
Parámetros
Client
get_ai
Get AI Trends by ID
Retrieves an AI trend by its ID.
Parámetros
Any
The ID of the ai trend.
List or None
default:"None"
A comma separated list of News fields to display.
Devuelve
GetAiResponse - Response data
get_by_woeid
Get Trends by WOEID
Retrieves trending topics for a specific location identified by its WOEID.
Parámetros
int
The WOEID of the place to lookup a trend for.
int or None
default:"None"
El número máximo de resultados.
List or None
default:"None"
Una lista separada por comas de campos de Trend a mostrar.
Devuelve
GetByWoeidResponse - Response data
get_personalized
Get personalized Trends
Retrieves personalized trending topics for the authenticated user.
Parámetros
List or None
default:"None"
A comma separated list of PersonalizedTrend fields to display.
Devuelve
GetPersonalizedResponse - Response data