Client for Pushbullet API

Piotr Czajkowski 2d0b1bdd4f SendFile can now send file to specific device 3 years ago
.github 5885fdfd2a Added tests 3 years ago
LICENSE.md b4317f5d84 Starting 3 years ago
README.md 297d5d94b6 Added usage examples 3 years ago
bullet.go 2d0b1bdd4f SendFile can now send file to specific device 3 years ago
bullet_test.go 2d0b1bdd4f SendFile can now send file to specific device 3 years ago
devices.go a2cec82518 Added ListDevices 3 years ago
error.go 195375e3e4 No need for export 3 years ago
fileUpload.go 2d0b1bdd4f SendFile can now send file to specific device 3 years ago
push.go 40e0102289 SendLink can send link to specific device 3 years ago
pushInterface.go 396a5812ee Maybe a bit better 3 years ago

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