Skip to content

x-rin/line-authorizer

Repository files navigation

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)
}

About

A library for getting line access token.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages