issueFriendRequest static method
Requests a friend relationship with the target user. Any of the target user's linked membership ids are valid inputs.
Implementation
static Future<BooleanResponse> issueFriendRequest (
HttpClient client,
String membershipId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _membershipId = '$membershipId';
final HttpClientConfig config = HttpClientConfig('POST', '/Social/Friends/Add/$_membershipId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return BooleanResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}