@textile/hub > Users > getUsage
Users.getUsage() method
GetUsage returns current billing and usage information.
Signature:
getUsage(options?: UsageOptions): Promise<GetUsageResponse>;
Parameters
Parameter | Type | Description |
---|---|---|
options | UsageOptions |
Returns:
Promise<GetUsageResponse>
Example
import { Users } from "@textile/hub"
async function example(users: Users) {
const usage = await users.getUsage()
}