getMembershipDataById function

Future<ServerResponse<UserMembershipData>> getMembershipDataById (HttpClient http, GetMembershipDataByIdParams params)

Returns a list of accounts associated with the supplied membership ID and membership type. This will include all linked accounts (even when hidden) if supplied credentials permit it.

Implementation

Future<ServerResponse<UserMembershipData>> getMembershipDataById(HttpClient http, GetMembershipDataByIdParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/User/GetMembershipsById/${params.membershipId}/${params.membershipType}/",
    null,
    null
    ));
}