Documentation
¶
Index ¶
- type Client
- func (c *Client) AccessToken(ctx context.Context) (*storage.Token, error)
- func (c *Client) ApproveURL(state string) (string, error)
- func (c *Client) Do(ctx context.Context, method, path string, body io.Reader, contentType string) ([]byte, int, http.Header, error)
- func (c *Client) DoJSON(ctx context.Context, method, path string, payload any) ([]byte, int, http.Header, error)
- func (c *Client) ExchangeCode(ctx context.Context, code string) (*storage.Token, error)
- func (c *Client) Refresh(ctx context.Context, refreshToken string) (*storage.Token, error)
- func (c *Client) ResolveURL(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
BaseURL string
UserAgent string
ClientID string
ClientSecret string
RedirectURI string
Profile string
Store storage.TokenStore
HTTP *http.Client
// contains filtered or unexported fields
}
func (*Client) AccessToken ¶
func (*Client) ExchangeCode ¶
Click to show internal directories.
Click to hide internal directories.