Constructors
constructor
• new UsageClient(client): UsageClient
Creates a new usage client instance
Parameters
| Name | Type | Description | 
|---|---|---|
client | Client | The main X API client instance | 
Returns
UsageClient
Defined in
usage/client.ts:49Methods
get
▸ get(options?): Promise<Get2UsageTweetsResponse>
Get usage
Retrieves usage statistics for Posts over a specified number of days.
Parameters
| Name | Type | 
|---|---|
options | GetOptions | 
Returns
Promise<Get2UsageTweetsResponse>
Promise resolving to the API response