spotify

package
v0.0.0-...-74de35a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(ctx *gin.Context)

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

func Refresh(ctx *gin.Context)

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

func Swap(ctx *gin.Context)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL