Render9 SDK provides a simple and easy to use classes architecture to send otp. You can send otp of following types using the Render9 SDK:
You can send a otp to a user using the send method available on the client class otp manager.
Prerequisite You should have installed Node.js (version 18.10.0 or
higher).
Step 1. Install Render9 on your OS:Step 2. Add RENDER9_API_KEY to environment variable:Step 3. import sendOTP from render9:import { sendOTP } from 'render9'
Step 4. Use sendOTP method to send otp :sendOTP({ phoneNumber: <PHONE_NUMBER>, otp: <OTP> ,countryCode:<COUNTRY_CODE> , apiKey:<RENDER9_API_KEY> })
Prerequisite You should have installed Python.
Step 1. Install Render9 on your OS:Step 2. Add RENDER9_API_KEY to environment variable:Step 3. Use sendOTP method to send otp :sendOTP({ phoneNumber: <PHONE_NUMBER>, otp: <OTP> ,countryCode:<COUNTRY_CODE> , apiKey:<RENDER9_API_KEY> })
Prerequisite You should have installed Curl.
Step 1. Runcurl -X POST https://api.render9.com/api/otp -H 'Content-Type: application/json' -d '{ phoneNumber: <PHONE_NUMBER>, countryCode: <COUNTRY_CODE>,otp: <OTP> , apiKey: <RENDER9_API_KEY>}'
{ error: false, // true if there was an error, false otherwise message: 'OTP sent successfully' // message indicating the status}