Documentation
¶
Index ¶
- type Client
- func (c *Client) ExchangeTokensWithCode(ctx context.Context, code, state string) (*oauth2.Token, error)
- func (c *Client) GetAuthURL(ctx context.Context, state string) string
- func (c *Client) GetUserInfo(ctx context.Context, token *oauth2.Token) (*UserResponse, error)
- func (c *Client) PostTweet(ctx context.Context, token *oauth2.Token, tweet string) (string, error)
- func (c *Client) RefreshAccessToken(ctx context.Context, token *oauth2.Token) (*oauth2.Token, error)
- type Config
- type OAuthResponse
- type UserResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ExchangeTokensWithCode ¶
func (*Client) GetUserInfo ¶
type OAuthResponse ¶
Click to show internal directories.
Click to hide internal directories.