Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Token ¶
type Token struct { AccessToken string `json:"access_token"` ExpiresAt int64 `json:"expires_at"` RefreshToken string `json:"refresh_token"` }
func Login ¶ added in v0.4.0
Login opens an interactive authorization code flow. Arguments for LoginURL and RedeemCode are needed.
func RedeemCode ¶
RedeemCode needs endpoint Endpoint.Token, and configs Config.ClientID, Config.Scopes and RedirectURI config.RedirectURI must be the same as acquiring the code
Click to show internal directories.
Click to hide internal directories.