Skip to main content

Installation

go get github.com/apialerts/apialerts-go

Usage

package main

import "github.com/apialerts/apialerts-go"

func main() {
    client := apialerts.New("YOUR-API-KEY")

    // Simple notification
    client.Send(apialerts.Event{
        Message: "Deployment successful",
    })

    // With all options
    client.Send(apialerts.Event{
        Message: "New user signed up",
        Channel: "developers",
        Link:    "https://dashboard.example.com/users/123",
        Tags:    []string{"signup", "organic"},
    })
}

Resources

GitHub Repository

Full documentation, examples, and source code.