getProfile function

Future<ServerResponse<DestinyProfileResponse>> getProfile (HttpClient http, GetProfileParams params)

Returns Destiny Profile information for the supplied membership.

Implementation

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