Skip to content
/ goprowl Public

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

License

Notifications You must be signed in to change notification settings

rem7/goprowl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())
}

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages