Documentation ¶
Overview ¶
This code only use "Line Notify REST API"
See Also ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendImage ¶
SendImage : send line notify simple text with image
Example ¶
package main import ( "github.com/Frontware/simple-go-line-notify/notify" ) func main() { accessToken := "29jWoO****p70eK3AKA********ooHfusvDP6***ZmR" message := "hello, world!" imageURL := "https://d.line-scdn.net/n/line_lp/img/ogimage.png" if err := notify.SendImage(accessToken, message, imageURL); err != nil { panic(err) } }
Output:
func SendLocalImage ¶
SendLocalImage : send line notify simple text with upload local image(jpg, png only)
Example ¶
accessToken := "29jWoO****p70eK3AKA********ooHfusvDP6***ZmR" message := "hello, world!" imagePath := "./sample.png" if err := notify.SendLocalImage(accessToken, message, imagePath); err != nil { panic(err) }
Output:
func SendSticker ¶
SendSticker : send line notify simple text with sticker
Sticker List ¶
https://devdocs.line.me/files/sticker_list.pdf
Example ¶
accessToken := "29jWoO****p70eK3AKA********ooHfusvDP6***ZmR" message := "hello, world!" stickerPackageId := 1 stickerId := 113 if err := notify.SendSticker(accessToken, message, stickerPackageId, stickerId); err != nil { panic(err) }
Output:
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.