Giter Club home page Giter Club logo

otp-verification-api's Introduction

OTP Verification Library

Android OS Languages-Java Instagram - x__coder__ GitHub Repo stars

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.

Normal Server

Pros

  • Free & No account needed
  • 2 Backup servers, in case of emergency or quota reached.

Cons / Limitations

  • 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.

Premium servers

Pros & Features:

  • 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.

Usage:

        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
            }
        });

How to get ?

Contact me & I will provide you premium server within 48 hours. Contacting options:-

Implimentation

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'
}

Tutorial

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
            }
        });

Support us

If you like my hard work, please give this repo a star ๐ŸŒŸ & Nothing else. Also check my other repos. Thank you !

Join our telegram

otp-verification-api's People

Contributors

errorxcode avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.