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.
トレンド関連の操作用クライアント
このクライアントは、X API のトレンドエンドポイントとやり取りするためのメソッドを提供します。トレンド関連のすべての操作において、認証、リクエストの構築、およびレスポンスの解析を行います。
zed](/xdks/typescript/reference/classes/TrendsClient#getpersonalized)
• new TrendsClient(client): TrendsClient
新しい TrendsClient のインスタンスを作成します
| 名前 | type | 説明 |
|---|
client | Client | X API のメイン Client インスタンス |
TrendsClient
trends/client.ts:90
▸ getByWoeid(woeid, options): Promise<Response>
WOEID でトレンドを取得する
指定された WOEID で識別される場所のトレンドトピックを取得します。
| Name | Type | Description |
|---|
woeid | number | 指定した場所のトレンドを取得するための WOEID。 |
options | GetByWoeidOptions & { requestOptions: { raw: true } } | - |
Promise<Response>
API レスポンス、または requestOptions.raw が true の場合は生の Response オブジェクトに解決される Promise
定義元
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>
Promise は API レスポンスで解決されます。requestOptions.raw が true の場合は生の Response が返されます
trends/client.ts:285
▸ getPersonalized(options?): Promise<Get2UsersPersonalizedTrendsResponse>
パラメータ
| 名前 | 型 |
|---|
options? | GetPersonalizedOptions |
Promise<Get2UsersPersonalizedTrendsResponse>
trends/client.ts:294