Skip to content

Go SDK

Use the BeeBuzz Go SDK to send notifications from Go applications and services.

It supports both delivery modes:

  • Trusted delivery with Send when your application sends directly to BeeBuzz.
  • End-to-end encrypted delivery with SendEncrypted when your application encrypts for paired devices before upload.
Terminal window
go get go.beebuzz.app/beebuzz-go@latest
package main
import (
"context"
"log"
beebuzz "go.beebuzz.app/beebuzz-go"
)
func main() {
ctx := context.Background()
client, err := beebuzz.New("beebuzz_api_...")
if err != nil {
log.Fatal(err)
}
notification := beebuzz.NewNotification("Build finished")
notification.Body = "main passed CI"
_, err = client.Send(ctx, notification)
if err != nil {
log.Fatal(err)
}
}

For end-to-end encrypted delivery, list the paired device keys and pass their recipients to SendEncrypted.

See the Go SDK API reference for the full API and examples.