Here we will be using 2FACTOR authentication API to send OTP from Rails application. With free trial account you will get 100 OTP SMA balance. Follow below steps to get started!
Create a new 2FACTOR account
Visit 2FACTOR portal and create your free trial account using your email address and phone number. A unique API key will be generated for your account. You can get this API key in Manage Account > Account Summary section on home page. This API key will be used to call 2FACTOR API’s.
We will be using Net::HTTP to call 2FACTOR API’s.