getProductPage method

Future<GetProductPageResponse> getProductPage({
  1. required String portalProductId,
  2. required String productPageId,
  3. String? resourceOwnerAccountId,
})

Gets a product page of a portal product.

May throw AccessDeniedException. May throw BadRequestException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter portalProductId : The portal product identifier.

Parameter productPageId : The portal product identifier.

Parameter resourceOwnerAccountId : The account ID of the resource owner of the portal product.

Implementation

Future<GetProductPageResponse> getProductPage({
  required String portalProductId,
  required String productPageId,
  String? resourceOwnerAccountId,
}) async {
  final $query = <String, List<String>>{
    if (resourceOwnerAccountId != null)
      'resourceOwnerAccountId': [resourceOwnerAccountId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/v2/portalproducts/${Uri.encodeComponent(portalProductId)}/productpages/${Uri.encodeComponent(productPageId)}',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetProductPageResponse.fromJson(response);
}