Skip to content

A Golang module for communicating with the New-Tel API

Notifications You must be signed in to change notification settings

new-tel/newtel_api.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New-Tel golang client

A Golang client for communicating with the New-Tel API

Features

  • CallPassword (Flash call).
  • Request call.
  • Autodial call.

Basic usage

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)
}

Documentation

RU documentation could be found here

Swagger link

https://swagger.new-tel.net/

About

A Golang module for communicating with the New-Tel API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages