https://github.com/pakej/trioutil-go
Golang package for use with Trio Mobile SMS Provider.
https://github.com/pakej/trioutil-go
golang sms trio-mobile
Last synced: about 2 months ago
JSON representation
Golang package for use with Trio Mobile SMS Provider.
- Host: GitHub
- URL: https://github.com/pakej/trioutil-go
- Owner: pakej
- License: mit
- Created: 2016-11-21T07:07:33.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2019-12-13T14:35:27.000Z (over 6 years ago)
- Last Synced: 2023-08-08T04:12:16.733Z (almost 3 years ago)
- Topics: golang, sms, trio-mobile
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TrioUtil
TrioUtil is a golang package for use with Trio-Mobile SMS Provider. It's usage is based on Trio-Mobile's API.
## Installation
```
$ go get github.com/pakej/go-trioutil
```
## Usage
Import TrioUtil
```
import "github.com/pakej/go-trioutil"
```
Create a new trioutil reference
```
trio_token := "my-trio-mobile-token"
t := TrioUtil.New(trio_token)
```
Send an SMS
```
response, err := t.SendSms(phone, body)
if err != nil {
// handle the error
return
}
// do something with response
```
## Making Changes
1. Create your feature branch (`git checkout -b new-feature`)
2. Commit your changes (`git commit -am 'Some cool reflection'`)
3. Push to the branch (`git push origin new-feature`)
4. Create new Pull Request
## License
MIT