Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AuthURL ... AuthURL = "https://www.destiny.gg/oauth/authorize" // TokenURL ... TokenURL = "https://www.destiny.gg/oauth/token" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponse ¶
type AccessTokenResponse struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"`
RefreshToken string `json:"refresh_token"`
Scope string `json:"scope"`
TokenType string `json:"token_type"`
}
AccessTokenResponse ...
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client ...
func (*Client) GetAccessToken ¶
func (c *Client) GetAccessToken(code, verifier string) (*AccessTokenResponse, error)
GetAccessToken returns the access token with the code and verifier provided
func (*Client) GetAuthorizationURL ¶
GetAuthorizationURL returns the authorization url you need to redirect the user to
func (*Client) RenewAccessToken ¶
func (c *Client) RenewAccessToken(refreshToken string) (*AccessTokenResponse, error)
RenewAccessToken renews the access token with the refresh token provided
type OauthError ¶
type OauthError struct {
Error string `json:"error"`
Message string `json:"message"`
Code int `json:"code"`
}
OauthError ...
Click to show internal directories.
Click to hide internal directories.