Skip to main content
트렌드 작업을 위한 클라이언트 이 클라이언트는 X API의 trends 엔드포인트와 상호작용하기 위한 메서드를 제공합니다. 이 클라이언트는 인증, 요청 형식 지정, 그리고 모든 trends 관련 작업에 대한 응답 파싱을 처리합니다. zed](/xdks/typescript/reference/classes/TrendsClient#getpersonalized)

생성자

constructor

new TrendsClient(client): TrendsClient 새로운 trends 클라이언트 인스턴스를 생성합니다.

매개변수

반환값

TrendsClient

정의 위치

trends/client.ts:90

메서드

getByWoeid

getByWoeid(woeid, options): Promise<Response> WOEID로 트렌드 조회 Retrieves trending topics for a specific location identified by its WOEID.

매개변수

반환값

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

정의 위치

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

매개변수

반환값

Promise<Get2TrendsByWoeidWoeidResponse>

정의 위치

trends/client.ts:148

getPersonalized

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

매개변수

반환값

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

정의 위치

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

매개변수

반환값

Promise<Get2UsersPersonalizedTrendsResponse>

정의 위치

trends/client.ts:294