A simple notification library written in golang.
$ go get -u github.com/ispec-inc/notification
n := notification.NewAWS(
"YOUR AWS Access Key",
"YOUR AWS Secret Key",
"YOUR AWS Platform Application ARN",
)
ipt := notification.Input{
Title: "Hello",
Message: "Message",
DeviceToken: "iOS Device Token",
}
err := n.Send(ipt)
if err != nil {
//handling error
}
In the test time, you can use mock_notification
package.
Also in the development time, you can use LocalPublisher
which logging the notification information in console.
Copyright © 2017 Yusuke Yamada MIT license