Skip to content

marcopeocchi/go-otp-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OTP-Panel

All-in-one solution.
Coupled with its Android Client.

overview

Build

go build -o otp-panel *.go

Run

GIN_MODE=release REDIS_ADDR=<address>:<port> REDIS_PASS=<password> ./otp-panel

Example call

curl -XPOST -H "Content-type: application/json" -d '{
"message": "Your OTP is 390428",
"sender": "+1928731893",
"recipient": "+1092843098"
}' 'http:https://localhost:8080/api/publish'
Invoke-RestMethod -Method POST -Uri 'http:https://localhost:8080/api/publish' -Verbose:$false -Headers @{
    'Content-type' = 'application/json'
} -Body '{"message": "Your OTP is 390428","sender": "+1928731893","recipient": "+1092843098"}'