Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seven-io/go-client
Official Go API Client for seven.io
https://github.com/seven-io/go-client
api-client cnam go golang hlr mnp sdk sms sms-gateway tts
Last synced: about 1 month ago
JSON representation
Official Go API Client for seven.io
- Host: GitHub
- URL: https://github.com/seven-io/go-client
- Owner: seven-io
- License: mit
- Created: 2020-10-07T08:39:51.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T13:34:33.000Z (2 months ago)
- Last Synced: 2024-10-21T21:55:04.704Z (2 months ago)
- Topics: api-client, cnam, go, golang, hlr, mnp, sdk, sms, sms-gateway, tts
- Language: Go
- Homepage: https://pkg.go.dev/github.com/sms77io/go-client/sms77api
- Size: 88.9 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Official API Client for [Go](https://golang.org/)
## Installation
Requires Go 1.13+.
```go get github.com/seven-io/go-client/sms77api```
### Usage
```go
package mainimport (
"fmt"
"github.com/seven-io/go-client/sms77api"
)func main() {
var client = sms77api.New(sms77api.Options{
ApiKey: "InsertSuperSecretSms77ApiKey!",
})
var balance, err = client.Balance.Get()
if err == nil {
fmt.Println(fmt.Sprintf("%f", *balance))
} else {
fmt.Println(err.Error())
}
}
```#### Tests
Some basic tests are implemented. Set environment variable `SEVEN_API_KEY` for live API keys. Set environment
variable `SEVEN_API_KEY_SANDBOX` for sandbox API keys. The dummy key takes preference if both are set. Run all suites by
running `go test`.##### Support
Need help? Feel free to [contact us](https://www.seven.io/en/company/contact/).
[![MIT](https://img.shields.io/badge/License-MIT-teal.svg)](LICENSE)