Client for Pushbullet API

Piotr Czajkowski 5885fdfd2a Added tests há 3 anos atrás
.github 5885fdfd2a Added tests há 3 anos atrás
LICENSE.md b4317f5d84 Starting há 3 anos atrás
README.md 297d5d94b6 Added usage examples há 3 anos atrás
bullet.go 4b1cc3a33d Correction há 3 anos atrás
bullet_test.go a8d722f157 Added TestSendFile há 3 anos atrás
error.go 195375e3e4 No need for export há 3 anos atrás
fileUpload.go 396a5812ee Maybe a bit better há 3 anos atrás
push.go 396a5812ee Maybe a bit better há 3 anos atrás
pushInterface.go 396a5812ee Maybe a bit better há 3 anos atrás

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