getBungieNetUserById static method
Loads a bungienet user by membership id.
Implementation
static Future<GeneralUserResponse> getBungieNetUserById (
HttpClient client,
String id,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _id = '$id';
final HttpClientConfig config = HttpClientConfig('GET', '/User/GetBungieNetUserById/$_id/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return GeneralUserResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}