Class VerifyRequest

java.lang.Object
com.vonage.client.verify.BaseRequest
com.vonage.client.verify.VerifyRequest

public class VerifyRequest
extends BaseRequest
Describes a Verify request when passed to VerifyEndpoint.
  • Constructor Details

    • VerifyRequest

      @Deprecated public VerifyRequest​(java.lang.String number, java.lang.String brand)
      Deprecated.
      this construtor is deprecated use VerifyRequest.Builder to contruct a 2FA verify request
      Constructor.
      Parameters:
      number - (required) The recipient's phone number in E.164 format.
      brand - (required) The name of the company or app to be verified for. Must not be longer than 18 characters.
    • VerifyRequest

      @Deprecated public VerifyRequest​(java.lang.String number, java.lang.String brand, java.lang.String from)
      Deprecated.
      this construtor is deprecated use VerifyRequest.Builder to contruct a 2FA verify request
      Constructor.
      Parameters:
      number - (required) The recipient's phone number in E.164 format.
      brand - (required) The name of the company or app you are verifying for. Must not be longer than 18 characters.
      from - (optional The Vonage number to use as the sender for the verification SMS message and calls, in E.164 format.
    • VerifyRequest

      @Deprecated public VerifyRequest​(java.lang.String number, java.lang.String brand, java.lang.String from, int length, java.util.Locale locale)
      Deprecated.
      this construtor is deprecated use VerifyRequest.Builder instead
      Constructor.
      Parameters:
      number - (required) The recipient's phone number in E.164 format.
      brand - (required) The name of the company or app you are verifying for. Must not be longer than 18 characters.
      from - (optional The Vonage number to use as the sender for the verification SMS message and calls, in E.164 format.
      length - (optional) The length of the verification code to be sent to the user. Must be either 4 or 6. Use -1 to use the default value.
      locale - (optional) Override the default locale used for verification. By default the locale is determined from the country code included in number
    • VerifyRequest

      @Deprecated public VerifyRequest​(java.lang.String number, java.lang.String brand, java.lang.String from, int length, java.util.Locale locale, VerifyRequest.LineType type)
      Deprecated.
      Constructor.
      Parameters:
      number - (required) The recipient's phone number in E.164 format.
      brand - (required) The name of the company or app you are verifying for. Must not be longer than 18 characters.
      from - (optional A short alphanumeric string to specify the SenderID for SMS sent by Verify. Depending on the destination of the phone number you are applying, restrictions may apply. By default, sender_id is VERIFY. Must be 11 characters or fewer.
      length - (optional) The length of the verification code to be sent to the user. Must be either 4 or 6. Use -1 to use the default value.
      locale - (optional) Override the default locale used for verification. By default the locale is determined from the country code included in number
      type - (optional) If provided, restrict the verification to the specified network type. Contact support@nexmo.com to enable this feature.
    • VerifyRequest

  • Method Details