diff --git a/src/main/java/com/vonage/quickstart/verify2/SendRequestWithFallback.java b/src/main/java/com/vonage/quickstart/verify2/SendRequestWithFallback.java index 59cb0f0..9648eee 100644 --- a/src/main/java/com/vonage/quickstart/verify2/SendRequestWithFallback.java +++ b/src/main/java/com/vonage/quickstart/verify2/SendRequestWithFallback.java @@ -35,7 +35,8 @@ public static void main(String[] args) throws Exception { VerificationResponse response = client.getVerify2Client().sendVerification( VerificationRequest.builder() .addWorkflow(new SilentAuthWorkflow(VERIFY_NUMBER)) - .addWorkflow(new EmailWorkflow(VERIFY_TO_EMAIL)) + .addWorkflow(new SmsWorkflow(VERIFY_NUMBER)) + .addWorkflow(new VoiceWorkflow(VERIFY_NUMBER)) .brand(VERIFY_BRAND_NAME).build() ); System.out.println("Verification sent: " + response.getRequestId());