A flask app with One-Time-Password related APIs. These APIs use 2factor.in OTP provider.
sudo pip install virtualenv
python3 -m venv flaskenv
source flaskenv/bin/activate
pip install -r requirements.txt
To access this API via your browser, provide phone number with the URL.
http://127.0.0.1:5000/api/v1/otpgen?phone=9988776655
To access this API via your browser, provide phone number and OTP with the URL.
http://127.0.0.1:5000/api/v1/otpverify?phone=9988776655&otp=123456
Both the APIs provide output in JSON format with the value for the Status field indicating Success or Error.
Further details about the Error can be obtained using the Details field in the response.