Skip to content

seven-io/go-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

25 Commits

Repository files navigation

Official API Client forGo

Installation

Requires Go 1.13+.

go get github.com/seven-io/go-client/sms77api

Usage

packagemain

import(
"fmt"
"github.com/seven-io/go-client/sms77api"
)

funcmain() {
varclient=sms77api.New(sms77api.Options{
ApiKey:"InsertSuperSecretSms77ApiKey!",
})
varbalance,err=client.Balance.Get()
iferr==nil{
fmt.Println(fmt.Sprintf("%f",*balance))
}else{
fmt.Println(err.Error())
}
}

Tests

Some basic tests are implemented. Set environment variableSEVEN_API_KEYfor live API keys. Set environment variableSEVEN_API_KEY_SANDBOXfor sandbox API keys. The dummy key takes preference if both are set. Run all suites by runninggo test.

Support

Need help? Feel free tocontact us.

MIT