getUserEndpoints method

Future<GetUserEndpointsResponse> getUserEndpoints({
  1. required String applicationId,
  2. required String userId,
})

Retrieves information about all the endpoints that are associated with a specific user ID.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. 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 userId : The unique identifier for the user.

Implementation

Future<GetUserEndpointsResponse> getUserEndpoints({
  required String applicationId,
  required String userId,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  ArgumentError.checkNotNull(userId, 'userId');
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'GET',
    requestUri:
        '/v1/apps/${Uri.encodeComponent(applicationId)}/users/${Uri.encodeComponent(userId)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return GetUserEndpointsResponse(
    endpointsResponse: EndpointsResponse.fromJson($json),
  );
}