Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConfig ¶
NewConfig creates a new oauth2-backed configuration for handling Nest API Authentication. This is intended to be used with an oauth2.Client object.
func NewConfigWithToken ¶
func NewConfigWithToken(token string) oauth2.TokenSource
NewConfigWithToken creates a new oauth2 Token Source based on a static generated token. This is helpful when a token does not have an expiration or fetching an authorization code is not desirable or required.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.