getUserAnalyticsWithHttpInfo method
Get user API analytics
Returns API usage analytics for the authenticated user. Includes per-product usage counts, subscription status, and rate limits.
Note: This method returns the HTTP Response.
Parameters:
- String period: Time period for analytics (default is current billing period)
Implementation
Future<Response> getUserAnalyticsWithHttpInfo({ String? period, }) async {
// ignore: prefer_const_declarations
final path = r'/api/v1/users/me/analytics';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
if (period != null) {
queryParams.addAll(_queryParams('', 'period', period));
}
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}