A go interface to NotifyMyAndroid
Go
Latest commit 73c9989 May 31, 2014 @dustin Added a soft fail case
Permalink
Failed to load latest commit information.
example
.gitignore First go. Jun 2, 2012
README.markdown Updated for new import name Jul 29, 2013
nma.go More sensible HTTP error handling May 28, 2014
nma_test.go Added a soft fail case May 31, 2014

README.markdown

Notify My Android on the Go

This is a go client for Notify my Android.

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

package main

import "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)
    }
}