Documentation ¶
Index ¶
Constants ¶
View Source
const Endpoint = "https://api.amazonalexa.com"
View Source
const LwaClientData = "secret.json"
View Source
const TokenPath = "token.json"
Variables ¶
This section is empty.
Functions ¶
func GenerateLwaTokens ¶
func GenerateLwaTokens() error
GenerateLwaTokens calls the ask util generate-lwa-tokens and saves the token data to token.json where it can be used by the token source.
Follow the setup instructions at the following url, stopping before "Generate an access token".
Save the client_id and client_secret in secrets.json with the following format: { "client_id": "ID", "client_secret": "SECRET" }
Types ¶
type ClientCredentials ¶
type DelayRoundTripper ¶ added in v0.2.1
type DelayRoundTripper struct { Target http.RoundTripper Delay time.Duration LogRequests bool }
type RefreshTokenRequest ¶
type RefreshTokenResponse ¶
type Smapi ¶ added in v0.1.4
func (*Smapi) GetSingleVendor ¶ added in v0.2.1
type TokenSource ¶
type TokenSource struct{}
Click to show internal directories.
Click to hide internal directories.