go get -u github.com/juunini/simple-go-line-notify
package main
import "github.com/juunini/simple-go-line-notify/notify"
func main() {
accessToken := "29jWoO****p70eK3AKA********ooHfusvDP6***ZmR"
message := "hello, world!"
if err := notify.SendText(accessToken, message); err != nil {
panic(err)
}
}
accessToken := "your-access-token"
message := "your message. must not be empty"
imageURL := "image url. ex) https://..."
if err := notify.SendImage(accessToken, message, imageURL); err != nil {
panic(err)
}
accessToken := "your-access-token"
message := "your message. must not be empty"
imagePath := "/your/image/path.png"
if err := notify.SendLocalImage(accessToken, message, imagePath); err != nil {
panic(err)
}
Sticker List is See Here
accessToken := "your-access-token"
message := "your message. must not be empty"
stickerPackageId := 1
stickerId := 113
if err := notify.SendSticker(accessToken, message, stickerPackageId, stickerId); err != nil {
panic(err)
}