Skip to content

Commit 23e36eb

Browse files
committed
fix: update fallback channels in Verify request code snippet
1 parent be11183 commit 23e36eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/vonage/quickstart/verify2/SendRequestWithFallback.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public static void main(String[] args) throws Exception {
3535
VerificationResponse response = client.getVerify2Client().sendVerification(
3636
VerificationRequest.builder()
3737
.addWorkflow(new SilentAuthWorkflow(VERIFY_NUMBER))
38-
.addWorkflow(new EmailWorkflow(VERIFY_TO_EMAIL))
38+
.addWorkflow(new SmsWorkflow(VERIFY_NUMBER))
39+
.addWorkflow(new VoiceWorkflow(VERIFY_NUMBER))
3940
.brand(VERIFY_BRAND_NAME).build()
4041
);
4142
System.out.println("Verification sent: " + response.getRequestId());

0 commit comments

Comments
 (0)