Documentation Index
Fetch the complete documentation index at: https://generaltranslation.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
트렌드 작업용 Client입니다.
이 Client는 X API의 트렌드 엔드포인트와 상호작용하기 위한 메서드를 제공합니다. 인증, 요청 포맷팅, 응답 파싱까지 모든 트렌드 관련 작업을 처리합니다.
zed](/xdks/typescript/reference/classes/TrendsClient#getpersonalized)
• new TrendsClient(client): TrendsClient
새로운 TrendsClient 인스턴스를 생성합니다
| 이름 | 타입 | 설명 |
|---|
client | Client | 주요 X API Client 인스턴스 |
TrendsClient
trends/client.ts:90
▸ getByWoeid(woeid, options): Promise<Response>
WOEID로 트렌드 가져오기
특정 WOEID로 식별되는 위치의 트렌드를 조회합니다.
| 이름 | Type | 설명 |
|---|
woeid | number | 트렌드를 조회할 위치의 WOEID입니다. |
options | GetByWoeidOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API 응답으로 resolve되는 Promise이거나, requestOptions.raw가 true인 경우 원시 Response 객체
정의 위치
trends/client.ts:135
▸ getByWoeid(woeid, options?): Promise<Get2TrendsByWoeidWoeidResponse>
| 이름 | 유형 |
|---|
woeid | number |
options? | GetByWoeidOptions |
Promise<Get2TrendsByWoeidWoeidResponse>
정의 위치
trends/client.ts:148
▸ getPersonalized(options): Promise<Response>
개인화된 트렌드 가져오기
인증된 사용자의 개인화된 트렌드 주제를 조회합니다.
| 이름 | type |
|---|
options | GetPersonalizedOptions & { requestOptions: { raw: true } } |
Promise<Response>
API 응답으로 resolve되는 Promise 또는 requestOptions.raw가 true인 경우 원시 Response
trends/client.ts:285
▸ getPersonalized(options?): Promise<Get2UsersPersonalizedTrendsResponse>
| 이름 | type |
|---|
options? | GetPersonalizedOptions |
Promise<Get2UsersPersonalizedTrendsResponse>
trends/client.ts:294