token

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientRedirectUrl = "http://localhost:6391/callback"
)

Variables

This section is empty.

Functions

func OpenBrowser

func OpenBrowser(u string) error

Types

type Client added in v0.1.15

type Client struct {
	// contains filtered or unexported fields
}

func NewClient added in v0.1.15

func NewClient(tokenFilename string) *Client

func (*Client) GetToken added in v0.1.15

func (c *Client) GetToken() (string, error)

func (*Client) RequestToken added in v0.1.15

func (c *Client) RequestToken(endpoint string) (string, error)

type ExchangeResponse added in v0.1.15

type ExchangeResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
}

Jump to

Keyboard shortcuts

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