Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustin/go-nma
A go interface to NotifyMyAndroid
https://github.com/dustin/go-nma
Last synced: about 2 months ago
JSON representation
A go interface to NotifyMyAndroid
- Host: GitHub
- URL: https://github.com/dustin/go-nma
- Owner: dustin
- Created: 2012-06-02T02:31:35.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-31T07:01:18.000Z (over 10 years ago)
- Last Synced: 2024-10-11T14:15:22.875Z (2 months ago)
- Language: Go
- Size: 242 KB
- Stars: 17
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# Notify My Android on the Go
This is a [go][go] client for [Notify my Android][NMA].
With this, you can send simple notifications directly to your phone
and other android devices quickly and easily.## Installation
`go get github.com/dustin/go-nma`
## Usage
```go
package mainimport "github.com/dustin/go-nma"
func main() {
n := nma.New("yourapikey")
e := nma.Notification{
Event: "It worked!",
Description: "I was able to send a message!",
Priority: 1,
}if err := n.Notify(&e); err != nil {
fmt.Fprintf(os.Stderr, "Error sending message: %v\n", err)
os.Exit(1)
}
}
```[go]: http://golang.org/
[NMA]: http://www.notifymyandroid.com/