goline

package module
v0.0.0-...-18283eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 13 Imported by: 0

README

go-line

Documentation

Index

Constants

View Source
const (
	LINE_NOTIFY_URL string = "https://notify-api.line.me/api/notify"
)

Variables

This section is empty.

Functions

func LineNotificationOff

func LineNotificationOff()

func LineNotificationOn

func LineNotificationOn()

Types

type LineNotifyToken

type LineNotifyToken struct {
	Token string
	Tag   string
}

func NewNotifyClient

func NewNotifyClient(token string) *LineNotifyToken

func NewNotifyClientWithTag

func NewNotifyClientWithTag(token, tag string) *LineNotifyToken

func (*LineNotifyToken) SendImageFile

func (t *LineNotifyToken) SendImageFile(msg, imgpath string) error

func (*LineNotifyToken) SendImageUrl

func (t *LineNotifyToken) SendImageUrl(msg, imgurl, thumbUrl string) error

func (*LineNotifyToken) SendMessage

func (t *LineNotifyToken) SendMessage(msg string) error

func (*LineNotifyToken) SendSticker

func (t *LineNotifyToken) SendSticker(msg string, packageId, id int32) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL