getActivityHistory function

Future<ServerResponse<DestinyActivityHistoryResults>> getActivityHistory (
  1. HttpClient http,
  2. GetActivityHistoryParams params
)

Gets activity history stats for indicated character.

Implementation

Future<ServerResponse<DestinyActivityHistoryResults>> getActivityHistory(HttpClient http, GetActivityHistoryParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/${params.membershipType}/Account/${params.destinyMembershipId}/Character/${params.characterId}/Stats/Activities/",
    {
      'count': params.count,
      'mode': params.mode,
      'page': params.page
    },
    null
    ));
}