Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(src TokenSource) *http.Client
Types ¶
type RetrieveError ¶
func (*RetrieveError) Error ¶
func (r *RetrieveError) Error() string
type Token ¶
type Token struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` UserID string `json:"user_id"` DeviceID string `json:"device_id"` }
func (*Token) SetAuthHeader ¶
type TokenSource ¶
func BasicTokenSource ¶
func BasicTokenSource(t *Token) TokenSource
Click to show internal directories.
Click to hide internal directories.