getInAppMessages method
Retrieves the in-app messages targeted for the provided endpoint ID.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw MethodNotAllowedException.
May throw NotFoundException.
May throw PayloadTooLargeException.
May throw TooManyRequestsException.
Parameter applicationId :
The unique identifier for the application. This identifier is displayed as
the Project ID on the Amazon Pinpoint console.
Parameter endpointId :
The unique identifier for the endpoint.
Implementation
Future<GetInAppMessagesResponse> getInAppMessages({
required String applicationId,
required String endpointId,
}) async {
final response = await _protocol.sendRaw(
payload: null,
method: 'GET',
requestUri:
'/v1/apps/${Uri.encodeComponent(applicationId)}/endpoints/${Uri.encodeComponent(endpointId)}/inappmessages',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return GetInAppMessagesResponse(
inAppMessagesResponse: InAppMessagesResponse.fromJson($json),
);
}