A Golang client for communicating with the New-Tel API
- CallPassword (Flash call).
- Request call.
- Autodial call.
To obtain the API_KEY and API_SIGNATURE please register here https://my.new-tel.net/register
package main
import (
"fmt"
"log"
"github.com/new-tel/newtel_api.go"
)
func main() {
cfg := newtel_api.NewTelConfig{
ApiKey: "xxxxxxxxxxxxxx",
ApiSign: "yyyyyyyyyyyyyyyyyyyyy",
}
client := newtel_api.NewTelClient(cfg)
resp, err := client.CallPassword("+79081234567", "1234")
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", resp)
}
RU documentation could be found here