Skip to content

This code will help you deploy OTP messages for verification in your Java App

Notifications You must be signed in to change notification settings

undevofficial/JETEXT-otp-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sendotp-java

Instructions to integrate SendOtp Java API.

Installation

  • Maven installation:
<dependencies>
	..
    <dependency>
        <groupId>sendotp-java</groupId>
        <artifactId>sendotp-java</artifactId>
        <version>1.0.0</version>
    </dependency>
</dependencies>

Usage

  • Create SendOtp object with your authKey:
SendOtp sendOtp = new SendOtp(authKey);
  • Generate otp:
String otp = sendOtp.generateOtp(6);
  • Send otp to a number:
String response = sendOtp.send(contactNumber, senderId);
  • Verify otp:
String response = sendOtp.verify(contactNumber, otp);
  • Retry:
String response = sendOtp.retry(contactNumber, false); //send true if retrying for voice

About

This code will help you deploy OTP messages for verification in your Java App

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages