individualGroupInviteCancel static method
Future<GroupApplicationResponseResponse>
individualGroupInviteCancel(
- HttpClient client,
- String groupId,
- String membershipId,
- BungieMembershipType membershipType,
Cancels a pending invitation to join a group.
Implementation
static Future<GroupApplicationResponseResponse> individualGroupInviteCancel (
HttpClient client,
String groupId,
String membershipId,
BungieMembershipType membershipType,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _groupId = '$groupId';
final String _membershipId = '$membershipId';
final String _membershipType = '${membershipType.value}';
final HttpClientConfig config = HttpClientConfig('POST', '/GroupV2/$_groupId/Members/IndividualInviteCancel/$_membershipType/$_membershipId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return GroupApplicationResponseResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}