Client for Pushbullet API

Piotr Czajkowski 68fb4e837e SendNote can now send to specific device only %!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 297d5d94b6 Added usage examples %!s(int64=3) %!d(string=hai) anos
bullet.go 68fb4e837e SendNote can now send to specific device only %!s(int64=3) %!d(string=hai) anos
bullet_test.go 68fb4e837e SendNote can now send to specific device only %!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 396a5812ee Maybe a bit better %!s(int64=3) %!d(string=hai) anos
push.go 68fb4e837e SendNote can now send to specific device only %!s(int64=3) %!d(string=hai) anos
pushInterface.go 396a5812ee Maybe a bit better %!s(int64=3) %!d(string=hai) anos

README.md

bullet

Go Report Card

Initialize client

b := bullet.NewBullet("YOUR_TOKEN")

Send note

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

Send link

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

Send file

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