Skip to main content

하위 모듈

모듈 내용

이 모듈은 X API의 trends 엔드포인트에 대한 액세스를 제공합니다. 모든 trends-related 기능의 주요 진입점 역할을 합니다. 트렌드 작업을 위한 클라이언트

매개변수

Client

__init__

매개변수

Client

get_ai

Get AI Trends by ID Retrieves an AI trend by its ID.

매개변수

Any
The ID of the ai trend.
List or None
default:"None"
A comma separated list of News fields to display.

반환값

GetAiResponse - 응답 데이터

get_by_woeid

WOEID로 트렌드 조회 Retrieves trending topics for a specific location identified by its WOEID.

매개변수

int
The WOEID of the place to lookup a trend for.
결과의 최대 개수입니다.
List or None
default:"None"
A comma separated list of Trend fields to display.

반환값

GetByWoeidResponse - 응답 데이터

get_personalized

Get personalized Trends Retrieves personalized trending topics for the authenticated user.

매개변수

List or None
default:"None"
A comma separated list of PersonalizedTrend fields to display.

반환값

GetPersonalizedResponse - 응답 데이터