Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpotifyAuthorizationCode ¶
type SpotifyAuthorizationCode struct { AccessToken string `json:"access_token"` // For accessing user specific data from the API TokenType string `json:"token_type"` Scope string `json:"scope"` ExpiresIn json.Number `json:"expires_in"` // Time in seconds before the access token is invalidated RefreshToken string `json:"refresh_token"` // Used for refreshing the access token }
SpotifyAuthorizationCode will be used throughout the application to make requests to the Spotify API.
func (*SpotifyAuthorizationCode) Authorize ¶
func (s *SpotifyAuthorizationCode) Authorize() error
Authorizes gotify with the Spotify Authorization Code PKCE Flow. Further information can be found at https://developer.spotify.com/documentation/web-api/tutorials/code-pkce-flow
type SpotifyFlow ¶
type SpotifyFlow interface {
Authorize() error
}
Click to show internal directories.
Click to hide internal directories.