Structure of code
- api (structuring our API-related files)
- cmd (structuring our application entry point)
- data (structuring our application data) ___ ### create a .env file and load this variable
TWILIO_ACCOUNT_SID = "your Twilio account sid" TWILIO_AUTHTOKEN = "your twilio account authtoken" TWILIO_SERVICES_ID = "youw twilio account service id"
Api Request Format
You can edit the Port and domain Api Url : = http://localhost:8080/otp
{
"PhoneNumber":"enter your number with country code"
}
Api Url : = http://localhost:8080/verifyOTP ``` { “user”:{ “PhoneNumber”:”enter your number with country code” }, “code”:”enter your OTP” }