Skip to main content

Submódulos

Conteúdo do módulo

Este módulo fornece acesso aos endpoints trends da X API e serve como o principal ponto de entrada para toda a funcionalidade relacionada a trends. Client para operações 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.

Retorna

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.
The maximum number of results.
List or None
default:"None"
A comma separated list of Trend fields to display.

Retorna

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.

Retorna

GetPersonalizedResponse - Response data