https://github.com/tfcloud-go/messaging
A go client for messaging service (nuntius).
https://github.com/tfcloud-go/messaging
Last synced: 5 months ago
JSON representation
A go client for messaging service (nuntius).
- Host: GitHub
- URL: https://github.com/tfcloud-go/messaging
- Owner: tfcloud-go
- License: apache-2.0
- Created: 2021-06-07T08:22:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-08T07:02:33.000Z (about 5 years ago)
- Last Synced: 2024-06-21T09:43:46.982Z (almost 2 years ago)
- Language: Go
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# messaging
A go client for messaging service (nuntius).
## Usage
```go
func main() {
options := messaging.Options{
URL: "http://127.0.0.1:8080",
}
client, _ := messaging.NewClient(options)
err := client.SendSMS([]string{"135****0000"}, "send from messaging client")
if err != nil {
panic(err)
}
to := []strings{"william****@****.com"}
message := "send from messaging client"
subject := "test messaging client"
err = client.SendEmail(to, message, subject)
if err != nil {
panic(err)
}
}
```
## Copyright
The TFCloud Go Team. [Apache License 2.0](./LICENSE)