> ## 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

トレンド関連の操作用クライアント

このクライアントは、X API のトレンドエンドポイントとやり取りするためのメソッドを提供します。トレンド関連のすべての操作において、認証、リクエストの構築、およびレスポンスの解析を行います。

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

<div id="constructors">
  ## コンストラクタ
</div>

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

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

新しい `TrendsClient` のインスタンスを作成します

<div id="parameters">
  #### パラメーター
</div>

| 名前       | type                                                     | 説明                         |
| :------- | :------------------------------------------------------- | :------------------------- |
| `client` | [`Client`](/ja/xdks/typescript/reference/classes/Client) | X API のメイン `Client` インスタンス |

<div id="returns">
  #### 戻り値
</div>

[`TrendsClient`](/ja/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>

| Name      | Type                                                              | Description                |
| :-------- | :---------------------------------------------------------------- | :------------------------- |
| `woeid`   | `number`                                                          | 指定した場所のトレンドを取得するための WOEID。 |
| `options` | `GetByWoeidOptions` & \{ `requestOptions`: \{ `raw`: `true`  }  } | -                          |

<div id="returns">
  #### 戻り値
</div>

`Promise`\<`Response`>

API レスポンス、または requestOptions.raw が true の場合は生の Response オブジェクトに解決される Promise

#### 定義元

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

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

<div id="parameters">
  #### パラメーター
</div>

| 名前         | 型                   |
| :--------- | :------------------ |
| `woeid`    | `number`            |
| `options?` | `GetByWoeidOptions` |

#### 返り値

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

<div id="defined-in">
  #### 定義場所
</div>

[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`  }  } |

<div id="returns">
  #### 戻り値
</div>

`Promise`\<`Response`>

Promise は API レスポンスで解決されます。`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`](/ja/xdks/typescript/reference/interfaces/Schemas.Get2UsersPersonalizedTrendsResponse)>

#### パラメータ

| 名前         | 型                        |
| :--------- | :----------------------- |
| `options?` | `GetPersonalizedOptions` |

<div id="returns">
  #### 戻り値
</div>

`Promise`\<[`Get2UsersPersonalizedTrendsResponse`](/ja/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)
