generateRegistrationVerificationId method

Future<ClientResponse<VerifyRegistrationResponse, void>> generateRegistrationVerificationId(
  1. String email,
  2. String applicationId
)

Generate a new Application Registration Verification Id to be used with the Verify Registration API. This API will not attempt to send an email to the User. This API may be used to collect the verificationId for use with a third party system.

@param {String} email The email address of the user that needs a new verification email. @param {String} applicationId The Id of the application to be verified. @returns {Promise<ClientResponse

Implementation

Future<ClientResponse<VerifyRegistrationResponse, void>>
    generateRegistrationVerificationId(String email, String applicationId) {
  return _start<VerifyRegistrationResponse, void>()
      .withUri('/api/user/verify-registration')
      .withParameter('email', email)
      .withParameter('sendVerifyPasswordEmail', false)
      .withParameter('applicationId', applicationId)
      .withMethod('PUT')
      .withResponseHandler(defaultResponseHandlerBuilder(
          (d) => VerifyRegistrationResponse.fromJson(d)))
      .go();
}