getCharacter function

Future<ServerResponse<DestinyCharacterResponse>> getCharacter (HttpClient http, GetCharacterParams params)

Returns character information for the supplied character.

Implementation

Future<ServerResponse<DestinyCharacterResponse>> getCharacter(HttpClient http, GetCharacterParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/${params.membershipType}/Profile/${params.destinyMembershipId}/Character/${params.characterId}/",
    {
      'components': params.components
    },
    null
    ));
}