Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 886 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 886 Bytes

line-authorizer

Build Status Maintainability Test Coverage
A library for getting line access token.

example

package main

import (
	"fmt"
	"os"

	"github.com/kutsuzawa/line-authorizer"
)

func main() {
	config := authorizer.Config{
		ID:     "channelID",
		Secret: "channelSecret",
	}
	client := authorizer.NewClient(config)
	token, err := client.PublishChannelToken()
	if err != nil {
		os.Exit(1)
	}
	fmt.Printf("token: %s\n", *token)
}