Skip to content

howeyc/pbullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go Push Bullet

A Go library to call the Push Bullet API. Allows you to push notifications to your android devices.

GoDoc

Example (Push to all devices):

    package main

    import (
    	"fmt"

    	"github.com/howeyc/pbullet"
    )

    func main() {
	    pbullet.SetAPIKey("XXXX") // https://www.pushbullet.com/settings

	    devList, err := pbullet.GetDevices()
	    if err != nil {
		    fmt.Println(err)
	    }
	    for _, dev := range devList.Devices {
		    _, pushErr := dev.PushNote("Subject", "Body")
		    if pushErr != nil {
			    fmt.Println(err)
		    }
	    }
	    fmt.Println("Done")
    }

About

Go Push Bullet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages