Skip to content

Latest commit

 

History

History
41 lines (30 loc) · 1.08 KB

README.md

File metadata and controls

41 lines (30 loc) · 1.08 KB

go-pushbullet

Build API Documentation MIT License

Simple Go client for Pushbullet, a webservice to push lists, addresses, links and more to your Android devices.

Documentation available under: http://godoc.org/github.com/xconstruct/go-pushbullet

Install

go get "github.com/xconstruct/go-pushbullet"

Example

pb := pushbullet.New("YOUR_API_KEY")
devs, err := pb.Devices()
if err != nil {
	panic(err)
}

err = pb.PushNote(devs[0].Iden, "Hello!", "Hi from go-pushbullet!")
if err != nil {
	panic(err)
}


user, err := pb.Me()
if err != nil {
	panic(err)
}

err = pb.PushSMS(user.Iden, devs[0].Iden, "<TARGET_PHONE_NUMBER>", "Sms text")
if err != nil {
	panic(err)
}