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

# TrendsClient

트렌드 작업용 Client입니다.

이 Client는 X API의 트렌드 엔드포인트와 상호작용하기 위한 메서드를 제공합니다. 인증, 요청 포맷팅, 응답 파싱까지 모든 트렌드 관련 작업을 처리합니다.

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

<div id="constructors">
  ## 생성자
</div>

<div id="constructor">
  ### constructor
</div>

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

새로운 TrendsClient 인스턴스를 생성합니다

<div id="parameters">
  #### 매개변수
</div>

| 이름       | 타입                                                       | 설명                   |
| :------- | :------------------------------------------------------- | :------------------- |
| `client` | [`Client`](/ko/xdks/typescript/reference/classes/Client) | 주요 X API Client 인스턴스 |

#### 반환

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

<div id="defined-in">
  #### 정의된 위치
</div>

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

<div id="methods">
  ## 메서드
</div>

<div id="getbywoeid">
  ### getByWoeid
</div>

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

WOEID로 트렌드 가져오기\
특정 WOEID로 식별되는 위치의 트렌드를 조회합니다.

<div id="parameters">
  #### 매개변수
</div>

| 이름        | Type                                                              | 설명                     |
| :-------- | :---------------------------------------------------------------- | :--------------------- |
| `woeid`   | `number`                                                          | 트렌드를 조회할 위치의 WOEID입니다. |
| `options` | `GetByWoeidOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                      |

<div id="returns">
  #### 반환값
</div>

`Promise`\<`Response`>

API 응답으로 resolve되는 `Promise`이거나, `requestOptions.raw`가 `true`인 경우 원시 `Response` 객체

#### 정의 위치

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

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

<div id="parameters">
  #### 매개변수
</div>

| 이름         | 유형                  |
| :--------- | :------------------ |
| `woeid`    | `number`            |
| `options?` | `GetByWoeidOptions` |

#### 반환

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

#### 정의 위치

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

***

<div id="getpersonalized">
  ### getPersonalized
</div>

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

개인화된 트렌드 가져오기
인증된 사용자의 개인화된 트렌드 주제를 조회합니다.

<div id="parameters">
  #### 매개변수
</div>

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

#### 반환

`Promise`\<`Response`>

API 응답으로 resolve되는 Promise 또는 requestOptions.raw가 true인 경우 원시 Response

<div id="defined-in">
  #### 정의된 위치
</div>

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

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

<div id="parameters">
  #### 매개변수
</div>

| 이름         | type                     |
| :--------- | :----------------------- |
| `options?` | `GetPersonalizedOptions` |

<div id="returns">
  #### 반환값
</div>

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

<div id="defined-in">
  #### 정의된 위치
</div>

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