Most Easiest & lightweight library you had ever seen. Now verify Email's / Phone using this API. Just one line & you are all done, Although this API has some limitation.
- Free & No account needed
- 2 Backup servers, in case of emergency or quota reached.
- You can request OTP via mail only limited number of times per day
- SMS Verification is only for Android users & carrier charge may apply.
- The server will only accepts limited no. of OTP request made via email. doesn't matter who is using it, it will be counted by the server for everyone ๐ค
I will fix these issue in next release, if I get enough support.
- Your personal server, hence it will be only used by you.
- Free, Fast & Genuine
- It will only count your request as your daily limit or quata.
- Higher limits & quata, hence more OTPs requests a day.
- Free 700 + email verification
- 3 Backup Server available.
EmailVerification.setCustomServer(SERVER_ADDRESS,PORT,USERNAME,PASSWORD); // All these will be provided once you purchase premium server.
EmailVerification.RequestOTP(EmailVerification.SERVER_CUSTOM, "xxxx", "[email protected]", new OnCodeSent() {
@Override
public void SentSuccessful(String OTP) {
// Do what you want
}
@Override
public void SentFailed(Exception e) {
// may be because, email is invalid or disposable
}
});
Contact me & I will provide you premium server within 48 hours. Contacting options:-
- Telegram
- Youtube comments (Recommended)
- Email at [email protected] (Late reply)
Add maven to your root build.gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add the dependency
dependencies {
implementation 'com.github.ErrorxCode:OTP-Verification-Api:Tag'
}
To request OTP using E-mail
EmailVerification.RequestOTP(SERVER_MAIN, 4, 5, "[email protected]", new OnCodeSent() {
@Override
public void SentSuccessful(String OTP) {
// Store this OTP in a Variable
}
@Override
public void SentFailed(MessagingException e) {
// handle this error and show error message to user
}
});
To request OTP using SMS ( [!] for only android )
PhoneVerification.RequestOTP(4,5,USER_MOBILE_NUMBER);
To verify code
EmailVerification/PhoneVerification.VerifyCode(USER_ENTERED_CODE, SYSTEM_CODE, new OnVerifyCode() {
@Override
public void VerificationSuccessful() {
// OTP is correct & verified
}
@Override
public void VerificationFailed(Exception e) {
// OTP is incorrect & not verified
}
});
If you like my hard work, please give this repo a star ๐ & Nothing else. Also check my other repos. Thank you !