> ## Documentation Index
> Fetch the complete documentation index at: https://docs.x.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TrendsClient

> X API TypeScript SDK의 TrendsClient 클래스에 대한 참조입니다. X API v2의 trends 엔드포인트를 위한 메서드, 매개변수 및 반환 타입입니다.

트렌드 작업을 위한 클라이언트

이 클라이언트는 X API의 trends 엔드포인트와 상호작용하기 위한 메서드를 제공합니다.
이 클라이언트는 인증, 요청 형식 지정, 그리고
모든 trends 관련 작업에 대한 응답 파싱을 처리합니다.

zed]\(/xdks/typescript/reference/classes/TrendsClient#getpersonalized)

## 생성자

### constructor

• **new TrendsClient**(`client`): [`TrendsClient`](/xdks/typescript/reference/classes/TrendsClient)

새로운 trends 클라이언트 인스턴스를 생성합니다.

#### 매개변수

| 이름       | 타입                                                    | 설명                      |
| :------- | :---------------------------------------------------- | :---------------------- |
| `client` | [`Client`](/xdks/typescript/reference/classes/Client) | 메인 X API 클라이언트 인스턴스입니다. |

#### 반환값

[`TrendsClient`](/xdks/typescript/reference/classes/TrendsClient)

#### 정의 위치

[trends/client.ts:90](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/trends/client.ts#L90)

## 메서드

### getByWoeid

▸ **getByWoeid**(`woeid`, `options`): `Promise`\<`Response`>

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

#### 매개변수

| 이름        | 타입                                                                | 설명                                            |
| :-------- | :---------------------------------------------------------------- | :-------------------------------------------- |
| `woeid`   | `number`                                                          | The WOEID of the place to lookup a trend for. |
| `options` | `GetByWoeidOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                                             |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[trends/client.ts:135](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/trends/client.ts#L135)

▸ **getByWoeid**(`woeid`, `options?`): `Promise`\<[`Get2TrendsByWoeidWoeidResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TrendsByWoeidWoeidResponse)>

#### 매개변수

| 이름         | 타입                  |
| :--------- | :------------------ |
| `woeid`    | `number`            |
| `options?` | `GetByWoeidOptions` |

#### 반환값

`Promise`\<[`Get2TrendsByWoeidWoeidResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2TrendsByWoeidWoeidResponse)>

#### 정의 위치

[trends/client.ts:148](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/trends/client.ts#L148)

***

### getPersonalized

▸ **getPersonalized**(`options`): `Promise`\<`Response`>

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

#### 매개변수

| 이름        | 타입                                                                     |
| :-------- | :--------------------------------------------------------------------- |
| `options` | `GetPersonalizedOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } |

#### 반환값

`Promise`\<`Response`>

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

#### 정의 위치

[trends/client.ts:285](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/trends/client.ts#L285)

▸ **getPersonalized**(`options?`): `Promise`\<[`Get2UsersPersonalizedTrendsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2UsersPersonalizedTrendsResponse)>

#### 매개변수

| 이름         | 타입                       |
| :--------- | :----------------------- |
| `options?` | `GetPersonalizedOptions` |

#### 반환값

`Promise`\<[`Get2UsersPersonalizedTrendsResponse`](/xdks/typescript/reference/interfaces/Schemas.Get2UsersPersonalizedTrendsResponse)>

#### 정의 위치

[trends/client.ts:294](https://github.com/xdevplatform/xdk-typescript/blob/81aacb165e0802e188f608bdf462b60fc4e713a2/src/trends/client.ts#L294)
