使用状況操作用の Client この Client は、X API の使用状況エンドポイントとやり取りするためのメソッドを提供します。認証、リクエストの整形、および使用状況に関連するすべての操作に対するレスポンスのパースを処理します。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.
コンストラクタ
constructor
client): UsageClient
新しい UsageClient インスタンスを作成します
パラメーター
| Name | Type | Description |
|---|---|---|
client | Client | メインの X API Client インスタンス |
戻り値
UsageClient
定義場所
メソッド
get
options): Promise<Response>
利用状況を取得指定した日数にわたる投稿の利用統計を取得します。
パラメータ
| 名前 | 型 |
|---|---|
options | GetOptions & { requestOptions: { raw: true } } |
戻り値
Promise<Response>
API レスポンスを解決値とする Promise。requestOptions.raw が true の場合は、生の Response を解決値とする Promise
定義場所
options?): Promise<Get2UsageTweetsResponse>
パラメータ
| 名前 | 型 |
|---|---|
options? | GetOptions |
戻り値
Promise<Get2UsageTweetsResponse>