searchDestinyPlayer function

Future<ServerResponse<List<UserInfoCard>>> searchDestinyPlayer (
  1. HttpClient http,
  2. SearchDestinyPlayerParams params
)

Returns a list of Destiny memberships given a full Gamertag or PSN ID.

Implementation

Future<ServerResponse<List<UserInfoCard>>> searchDestinyPlayer(HttpClient http, SearchDestinyPlayerParams params) {
  return http.request(new HttpClientConfig(
    'GET',
    "https://www.bungie.net/Platform/Destiny2/SearchDestinyPlayer/${params.membershipType}/${params.displayName}/",
    null,
    null
    ));
}