deleteUserEndpoints method
Deletes all the endpoints that are associated with a specific user 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 userId :
The unique identifier for the user.
Implementation
Future<DeleteUserEndpointsResponse> deleteUserEndpoints({
required String applicationId,
required String userId,
}) async {
final response = await _protocol.sendRaw(
payload: null,
method: 'DELETE',
requestUri:
'/v1/apps/${Uri.encodeComponent(applicationId)}/users/${Uri.encodeComponent(userId)}',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return DeleteUserEndpointsResponse(
endpointsResponse: EndpointsResponse.fromJson($json),
);
}