Skip to content

aleyrizvi/enswitch-go

Repository files navigation

Main branch test status Main branch lint status

Go Enswitch

The unofficial Enswitch Go client library.

Requirements

  • Go 1.18 or later

Installation

Make sure your project is using Go Modules (it will have a go.mod file in its root if it already is):

go mod init

Then, reference enswitch-go in a Go program with import:

import (
	"github.com/aleyrizvi/enswitch-go"
)

Example:

package main

import (
	"context"
	"fmt"

	"github.com/aleyrizvi/enswitch-go"
)

func main() {
	client := enswitch.New(
		"username",
		"password",
		"domain", // e.g: sip1.nomado.eu
	)

	a, err := client.Customer.Balance.Update(context.Background(), enswitch.BalanceParams{
		ID:          123,
		Amount:      2,
		Description: enswitch.String("Testing from enswitch-go"),
	})
	
	if err != nil {
		panic(err)
    }

	fmt.Println(a.Responses[0].Code)
}

Future statuses

50%

Status Module name Description
access Remote access
addresses SIP addresses
alerts Alerts
audit Audit log
bulk Bul dialer
calls Calls
callshops Callshops
cards Calling cards
cdrs Call history
charges Charges
classes Number classes
codes Feature codes
conferences Conferences
configs Configuration settings
cos Classes of service
[IN PROGRESS] customers Customers
customs Custom settings
domains Domains
emails Emails
events Events
faxes Faxes
features Telephony features
hotels Hotel gateways
huntgroups Hunt groups
incosts Costs for inbound calls
ingroups Inbound groups
invoices Invoices
ivrs IVR menus
machines Machines
mailboxes Mailboxes
menus Menus
messages Messages
music Music
notes Notes
numbers Numbers
nvgroups Number vendor groups
outcosts Costs for outbound calls
outgroups Outbound groups
pagegroups Page groups
patternmenus Pattern menus
peers Peers
people People
phones Telephone lines
pickupgroups Pickup groups
plans Rate plans
plugins Plugins
preferences Preferences
prefixes Feature prefixes
products Products
provisioning Provisioning templates and files
queues Queues
recording Call recording
regions Regions
requests Requests
roles Roles
routes Routes
sounds Sounds
speeddials Speed dials
subscriptions Subscriptions
taxes Taxes
timegroups Time groups
traces Traces
transactions Transactions
unlimited Unlimited access
user Web user
vouchers Vouchers

Supported providers

(Send a pull request to add your name)

Support

I run on coffee. If you like to support me move faster, please help :)

Buy Me A Coffee

About

Go library for Integrics API

Resources

License

Stars

Watchers

Forks

Packages

No packages published