getProductRestEndpointPage method
Gets a product REST endpoint page.
May throw AccessDeniedException.
May throw BadRequestException.
May throw NotFoundException.
May throw TooManyRequestsException.
Parameter portalProductId :
The portal product identifier.
Parameter productRestEndpointPageId :
The product REST endpoint identifier.
Parameter includeRawDisplayContent :
The query parameter to include raw display content.
Parameter resourceOwnerAccountId :
The account ID of the resource owner of the portal product.
Implementation
Future<GetProductRestEndpointPageResponse> getProductRestEndpointPage({
required String portalProductId,
required String productRestEndpointPageId,
String? includeRawDisplayContent,
String? resourceOwnerAccountId,
}) async {
final $query = <String, List<String>>{
if (includeRawDisplayContent != null)
'includeRawDisplayContent': [includeRawDisplayContent],
if (resourceOwnerAccountId != null)
'resourceOwnerAccountId': [resourceOwnerAccountId],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/portalproducts/${Uri.encodeComponent(portalProductId)}/productrestendpointpages/${Uri.encodeComponent(productRestEndpointPageId)}',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetProductRestEndpointPageResponse.fromJson(response);
}