go-linenotify
Helper functions for sending message by LINE Notify API.
Install
go get github.com/yyotti/go-linenotify
Example
package main
import (
"context"
"log"
"github.com/yyotti/go-linenotify"
)
const authToken = "[LINE Notify Authorization Token]"
func main() {
notifier, err := linenotify.New(authToken)
if err != nil {
log.Fatal(err)
}
err = notifier.Send(context.Background(), "Hello!")
if err != nil {
log.Fatal(err)
}
}