getPartnerOfferSkuHistory static method

Future<CEListOfPartnerOfferSkuHistoryResponseResponse> getPartnerOfferSkuHistory(
  1. HttpClient client,
  2. int partnerApplicationId,
  3. String targetBnetMembershipId
)

Returns the partner sku and offer history of the targeted user. Elevated permissions are required to see users that are not yourself.

Implementation

static Future<CEListOfPartnerOfferSkuHistoryResponseResponse> getPartnerOfferSkuHistory (
    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('GET', '/Tokens/Partner/History/$_partnerApplicationId/$_targetBnetMembershipId/', params);
    config.bodyContentType = null;
    final HttpResponse response = await client.request(config);
    if(response.statusCode == 200) {
        return CEListOfPartnerOfferSkuHistoryResponseResponse.asyncFromJson(response.mappedBody);
    }
    throw Exception(response.mappedBody);
}