Eskiz-uz
Sign up or sign in and get your password from eskiz.uz
API Full documentation here
Example
package main
import (
"github.com/realtemirov/eskizuz"
)
func main() {
eskiz, err := eskizuz.GetToken(&eskizuz.Auth{
Email: "your_email",
Password: "your_sms_service_password",
})
if err != nil {
panic(err)
}
sms := &eskizuz.SMS{
MobilePhone: "998771234567",
Message: "test-message",
From: "eskizuz",
CallbackURL: "https://eskiz.uz",
}
// Sending message
result, err := eskiz.Send(sms)
// Refresh token
err = eskiz.RefreshToken()
// User info
user, err := eskiz.GetMe()
// get user limit
info, err := eskiz.GetUserLimit()
}
Contributing
If you get errors or have suggestions, please create an issue or pull request.