getCharacterStatsCharactersNameStatsGetWithHttpInfo method
Get Character Stats
Retrieve gameplay statistics for a character. Stats are only visible if the character's account has an active subscription. Statistics are still collected for all accounts regardless of subscription status.
Note: This method returns the HTTP Response.
Parameters:
- String name (required): The name of the character.
Implementation
Future<Response> getCharacterStatsCharactersNameStatsGetWithHttpInfo(
String name, {
Future<void>? abortTrigger,
}) async {
// ignore: prefer_const_declarations
final path = r'/characters/{name}/stats'.replaceAll('{name}', name);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
abortTrigger: abortTrigger,
);
}