applyMissingPartnerOffersWithoutClaim static method
Future<BooleanResponse>
applyMissingPartnerOffersWithoutClaim(
- HttpClient client,
- int partnerApplicationId,
- String targetBnetMembershipId
Apply a partner offer to the targeted user. This endpoint does not claim a new offer, but any already claimed offers will be applied to the game if not already.
Implementation
static Future<BooleanResponse> applyMissingPartnerOffersWithoutClaim (
HttpClient client,
int partnerApplicationId,
String targetBnetMembershipId,
) async {
final Map<String, dynamic> params = Map<String, dynamic>();
final String _partnerApplicationId = '$partnerApplicationId';
final String _targetBnetMembershipId = '$targetBnetMembershipId';
final HttpClientConfig config = HttpClientConfig('POST', '/Tokens/Partner/ApplyMissingOffers/$_partnerApplicationId/$_targetBnetMembershipId/', params);
config.bodyContentType = null;
final HttpResponse response = await client.request(config);
if(response.statusCode == 200) {
return BooleanResponse.asyncFromJson(response.mappedBody);
}
throw Exception(response.mappedBody);
}