acquia-dam-sdk
Version:
Interact with the Acquia DAM API
23 lines (20 loc) • 770 B
TypeScript
import { ApiClient } from '../../client/index.js';
import { GetUsageResult } from './responses.js';
declare class UsageApi {
private _client;
/**
* Create an instance of the UsageApi class.
*
* Retrieve information about the monthly usage of the API
*
* @param client Provide an instance of ApiClient.
*/
constructor(client: ApiClient);
/**
* Reveals the total number of API requests made within the current month. Note: Usage data is aggregated periodically and a delay of up to 24 hours may occur
* @returns Promise containing the monthly request count
* @see {@link https://widenv2.docs.apiary.io/#reference/usage/get-api-usage}
*/
getApiUsage(): Promise<GetUsageResult>;
}
export { UsageApi };