Skip to content
A wrapper for Prowl, Growl-like iPhone push notifications, written in Go.
Go
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
example
.gitignore
LICENSE
Makefile
README.md
goprowl.go
goprowl_test.go

README.md

Goprowl

A wrapper for Prowl, Growl-like iPhone push notifications, written in Go.

Originally written by Yanko D Sanchez Bolanos, 07/12/2011.

Usage

var p goprowl.Goprowl

err := p.RegisterKey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
if err != nil {
    fmt.Println("Unable to register key! - " + + err.Error())
    return
}

n := &goprowl.Notification{
    Application : "Foo",
    Description: "Foobar!",
    Event : "Bar",
    Priority : "1",
    Providerkey : "",
    Url: "www.foobar.com",      
}

err = p.Push(n)
if err != nil {
    fmt.Println("Unable to send Prowl notification! - " + + err.Error())
}

err = p.DelKey("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
if err != nil {
    fmt.Println("Unable to remove key! - " + err.Error())
}
Something went wrong with that request. Please try again.