생성자
constructor
client): TrendsClient
새로운 TrendsClient 인스턴스를 생성합니다
매개변수
| 이름 | 타입 | 설명 |
|---|---|---|
client | Client | 주요 X API Client 인스턴스 |
반환
TrendsClient
정의된 위치
메서드
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:148getPersonalized
options): Promise<Response>
개인화된 트렌드 가져오기
인증된 사용자의 개인화된 트렌드 주제를 조회합니다.
매개변수
| 이름 | type |
|---|---|
options | GetPersonalizedOptions & { requestOptions: { raw: true } } |
반환
Promise<Response>
API 응답으로 resolve되는 Promise 또는 requestOptions.raw가 true인 경우 원시 Response
정의된 위치
options?): Promise<Get2UsersPersonalizedTrendsResponse>
매개변수
| 이름 | type |
|---|---|
options? | GetPersonalizedOptions |
반환값
Promise<Get2UsersPersonalizedTrendsResponse>