getClanAggregateStats function

Future<ServerResponse<List<DestinyClanAggregateStat>>> getClanAggregateStats (HttpClient http, GetClanAggregateStatsParams params)

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

Future<ServerResponse<List<DestinyClanAggregateStat>>> getClanAggregateStats(HttpClient http, GetClanAggregateStatsParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/Stats/AggregateClanStats/${params.groupId}/",
    {
      'modes': params.modes
    },
    null
    ));
}