getMembershipDataForCurrentUser function

Future<ServerResponse<UserMembershipData>> getMembershipDataForCurrentUser (HttpClient http)

Returns a list of accounts associated with signed in user. This is useful for OAuth implementations that do not give you access to the token response.

Implementation

Future<ServerResponse<UserMembershipData>> getMembershipDataForCurrentUser(HttpClient http) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/User/GetMembershipsForCurrentUser/",
    null,
    null
    ));
}