Client for Pushbullet API

Piotr Czajkowski 68fb4e837e SendNote can now send to specific device only преди 3 години
.github 5885fdfd2a Added tests преди 3 години
LICENSE.md b4317f5d84 Starting преди 3 години
README.md 297d5d94b6 Added usage examples преди 3 години
bullet.go 68fb4e837e SendNote can now send to specific device only преди 3 години
bullet_test.go 68fb4e837e SendNote can now send to specific device only преди 3 години
devices.go a2cec82518 Added ListDevices преди 3 години
error.go 195375e3e4 No need for export преди 3 години
fileUpload.go 396a5812ee Maybe a bit better преди 3 години
push.go 68fb4e837e SendNote can now send to specific device only преди 3 години
pushInterface.go 396a5812ee Maybe a bit better преди 3 години

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