Go SDK for the LINE Messaging API
Please refer to the official api documents for details.
en: https://devdocs.line.me/en/
ja: https://devdocs.line.me/ja/
$ go get github.com/line/line-bot-sdk-go/linebot
import (
"github.com/line/line-bot-sdk-go/linebot"
)
func main() {
bot, err := linebot.New("<channel secret>", "<channel access token>")
...
}
client := &http.Client{}
bot, err := linebot.New("<channel secret>", "<channel accsss token>", linebot.WithHTTPClient(client))
...
This library requires Go 1.6 or later.
See LICENSE.txt