line-bot-sdk-go

module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2016 License: Apache-2.0

README

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

Directories

Path Synopsis
examples
echo_bot command
kitchensink command

Jump to

Keyboard shortcuts

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