govoipms

package module
v0.0.0-...-c940998 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

README

govoipms

Voip.ms API library written in Go utilizing the JSON API available from here: https://voip.ms/m/apidocs.php

The implementation is currently incomplete. All of the API functions in accounts.go, cdr.go, clients.go, and general.go are complete. Most of the read functions and several of the Set* functions in dids.go are complete. Nothing in fax.go or voicemail.go has been worked on other than the associated types being roughed in. Unfortunately I can no longer spend the effort to complete this project at this time as I've I started on a Python implementation instead. The next version might utilize Voip.MS's SOAP API instead of the JSON API to see if it speeds implementation time.

Usage

v1c := govoipms.NewV1Client("https://voip.ms/api/v1/rest.php", "email", "password", true)
general := v1c.NewGeneralAPI()
log.Println(general.GetBalance(true))

See examples/main.go for more details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewV1Client

func NewV1Client(url, username, password string, debug bool) *v1.VOIPClient

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL