Golang implementation of Turbosms gateway https://turbosms.ua/ua/soap.html. Built on top of code generated by https://github.com/hooklift/gowsdl tool.
package main
import (
"fmt"
sms "github.com/wildsurfer/turbosms-go"
"log"
)
func main() {
c := sms.NewClient("username", "password")
r, err := c.GetCreditBalance()
if err != nil {
log.Fatal(err)
} else {
fmt.Printf("Credit balance: %s\n", r.GetCreditBalanceResult)
}
}
package main
import (
"fmt"
sms "github.com/wildsurfer/turbosms-go"
"log"
)
func main() {
c := sms.NewClient("username", "password")
r, err := c.SendSMS("testname", "+123469563457", "Test message", "")
if err != nil {
log.Fatal(err)
} else {
fmt.Printf("Result: %v\n", r.SendSMSResult)
}
}
func main() {
c := sms.NewClient("myusername", "mypassword")
c.Debug = true
...
}