getHistoricalStatsForAccount function

Future<ServerResponse<DestinyHistoricalStatsAccountResult>> getHistoricalStatsForAccount (HttpClient http, GetHistoricalStatsForAccountParams params)

Gets aggregate historical stats organized around each character for a given account.

Implementation

Future<ServerResponse<DestinyHistoricalStatsAccountResult>> getHistoricalStatsForAccount(HttpClient http, GetHistoricalStatsForAccountParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/${params.membershipType}/Account/${params.destinyMembershipId}/Stats/",
    {
      'groups': params.groups
    },
    null
    ));
}