A library for getting line access token.
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)
}