Piotr Czajkowski aac6542bab If devices nil don't move forward | 3 years ago | |
---|---|---|
.github | 3 years ago | |
LICENSE.md | 4 years ago | |
README.md | 4 years ago | |
bullet.go | 3 years ago | |
bullet_test.go | 3 years ago | |
devices.go | 3 years ago | |
error.go | 4 years ago | |
fileUpload.go | 4 years ago | |
push.go | 4 years ago | |
pushInterface.go | 4 years ago |
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)
}