Client for Pushbullet API

Piotr Czajkowski 206b37a096 DRY %!s(int64=3) %!d(string=hai) anos
.github 5885fdfd2a Added tests %!s(int64=3) %!d(string=hai) anos
LICENSE.md b4317f5d84 Starting %!s(int64=3) %!d(string=hai) anos
README.md cec22df837 Updated instructions %!s(int64=3) %!d(string=hai) anos
bullet.go 206b37a096 DRY %!s(int64=3) %!d(string=hai) anos
bullet_test.go 1519ccf6d4 Added ListPushes %!s(int64=3) %!d(string=hai) anos
devices.go a2cec82518 Added ListDevices %!s(int64=3) %!d(string=hai) anos
error.go 195375e3e4 No need for export %!s(int64=3) %!d(string=hai) anos
fileUpload.go 2d0b1bdd4f SendFile can now send file to specific device %!s(int64=3) %!d(string=hai) anos
push.go 40e0102289 SendLink can send link to specific device %!s(int64=3) %!d(string=hai) anos
pushInterface.go 396a5812ee Maybe a bit better %!s(int64=3) %!d(string=hai) anos
pushes.go 1519ccf6d4 Added ListPushes %!s(int64=3) %!d(string=hai) anos

README.md

bullet

Go Report Card

Initialize client

b := bullet.NewBullet("YOUR_TOKEN")

Send note, use empty string in place of deviceID to send to all devices

err := b.SendNote("testTitle", "testText", "deviceID")
if err != nil {
    log.Fatal(err)
}

Send link, use empty string in place of deviceID to send to all devices

err := b.SendLink("testTitle", "testText", "https://abc.com", "deviceID")
if err != nil {
    log.Fatal(err)
}

Send file, use empty string in place of deviceID to send to all devices

err := b.SendFile("testFile", "Something", "./test.txt", "deviceID")
if err != nil {
    log.Fatal(err)
}

List devices

devices, err := b.ListDevices()
if err != nil {
    t.Error(err)
}