deleteRegistrationWithRequest method

Future<ClientResponse<void, Errors>> deleteRegistrationWithRequest(
  1. String userId,
  2. String applicationId,
  3. RegistrationDeleteRequest request
)

Deletes the user registration for the given user and application along with the given JSON body that contains the event information.

@param {String} userId The Id of the user whose registration is being deleted. @param {String} applicationId The Id of the application to remove the registration for. @param {RegistrationDeleteRequest} request The request body that contains the event information. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<void, Errors>> deleteRegistrationWithRequest(
    String userId, String applicationId, RegistrationDeleteRequest request) {
  return _start<void, Errors>()
      .withUri('/api/user/registration')
      .withUriSegment(userId)
      .withUriSegment(applicationId)
      .withJSONBody(request)
      .withMethod('DELETE')
      .go();
}