getFriendList static method
Returns your Bungie Friend list
Implementation
static Future<BungieFriendListResponseResponse> getFriendList (
HttpClient client,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final HttpClientConfig config = HttpClientConfig('GET', '/Social/Friends/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return BungieFriendListResponseResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}