https://github.com/hendisantika/spring-boot-twilio-otp
Spring Boot Twilio OTP
https://github.com/hendisantika/spring-boot-twilio-otp
Last synced: about 2 months ago
JSON representation
Spring Boot Twilio OTP
- Host: GitHub
- URL: https://github.com/hendisantika/spring-boot-twilio-otp
- Owner: hendisantika
- Created: 2022-03-14T00:54:28.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T02:49:57.000Z (about 2 months ago)
- Last Synced: 2025-04-13T00:13:51.192Z (about 2 months ago)
- Language: Java
- Size: 208 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spring-boot-twilio-otp
### Things todo list:
1. Clone this repository: `git clone https://github.com/hendisantika/spring-boot-twilio-otp.git`
2. Navigate to the folder: `cd spring-boot-twilio-otp`
3. Replace Twilio Credentials with your own
4. Run the application: `mvn clean spring-boot:run`
5. Import the POSTMAN Collection fileSend OTP
```shell
curl --location --request POST 'localhost:8080/api/otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"to": "+6281321411881"
}'
```Verify OTP
```shell
curl --location --request POST 'localhost:8080/otp' \
--header 'Content-Type: application/json' \
--data-raw '{
"otp": "789444"
}'
```