token

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	HTTPClient   *http.Client
	RedirectURI  string
	ClientID     string
	ClientSecret string
}

Client represents api client that get access token

func NewClient added in v0.5.0

func NewClient(redirectURI, clientID, clientSecret string, opts ...Option) *Client

NewClient returns Client

func (*Client) GetAccessToken

func (c *Client) GetAccessToken(ctx context.Context, code string) (string, error)

GetAccessToken returns access token that published by line notify

type Option

type Option func(*Client)

Option with client

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient set the http client

Jump to

Keyboard shortcuts

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