getClanAggregateStats static method
Future<ListOfDestinyClanAggregateStatResponse>
getClanAggregateStats(
- HttpClient client,
- String groupId,
- String modes
Gets aggregated stats for a clan using the same categories as the clan leaderboards. PREVIEW: This endpoint is still in beta, and may experience rough edges. The schema is in final form, but there may be bugs that prevent desirable operation.
Implementation
static Future<ListOfDestinyClanAggregateStatResponse> getClanAggregateStats (
HttpClient client,
String groupId,
String modes,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
params['modes'] = modes;
final HttpClientConfig config = HttpClientConfig('GET', '/Destiny2/Stats/AggregateClanStats/$_groupId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return ListOfDestinyClanAggregateStatResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}