/line-bot-sdk-go

Go SDK for the LINE Messaging API

Primary LanguageGoApache License 2.0Apache-2.0

line-bot-sdk-go

Build Status

Go SDK for the LINE Messaging API

About LINE Messaging API

Please refer to the official api documents for details.

en: https://devdocs.line.me/en/

ja: https://devdocs.line.me/ja/

Installation

$ go get github.com/line/line-bot-sdk-go/linebot

Configuration

import (
	"github.com/line/line-bot-sdk-go/linebot"
)

func main() {
	bot, err := linebot.New("<channel secret>", "<channel access token>")
	...
}

Configuration with http.Client

	client := &http.Client{}
	bot, err := linebot.New("<channel secret>", "<channel accsss token>", linebot.WithHTTPClient(client))
	...

Requirements

This library requires Go 1.6 or later.

LICENSE

See LICENSE.txt