Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
Redirects to Spotify login, hitting this endpoint might not be necessary if you are using a mobile sdk like iOSon the client side. Use this endpoint otherwise
func LoginRedirect ¶
func LoginRedirect() string
func Refresh ¶
After getting the initial access and refresh token from the swap endpoint using the authorization code, the refresh token endpoint allows you to get a new access token when the one issued previously has expired, it will also return a new refresh token occasionally, it will send back the send refresh token we sent otherwise.
func RefreshToken ¶
func RefreshToken(refreshToken string) (structures.TokenResponse, error)
func Swap ¶
After the user successfully accepts and authorizes our app's permissions you will get a authorization code, we will use that to get an access token and a refresh token.
func SwapToken ¶
func SwapToken(code, state string) (structures.TokenResponse, error)
Types ¶
This section is empty.