getEndpoint method
Retrieves information about the settings and attributes of a specific endpoint for an application.
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 case insensitive unique identifier for the endpoint. The identifier
can't contain $, { or }.
Implementation
Future<GetEndpointResponse> getEndpoint({
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)}',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return GetEndpointResponse(
endpointResponse: EndpointResponse.fromJson($json),
);
}