module BBCR1_Spotify
Defined in:
BBCR1_Spotify.crBBCR1_Spotify/Credentials.cr
BBCR1_Spotify/version.cr
Constant Summary
-
CREDENTIALS_FILE =
"credentials.yml"
-
DEFAULT_PLAYLIST_NAME =
"BBCR1 Songs"
-
SPOTIFY_API_EP =
"https://accounts.spotify.com"
-
VERSION =
"0.1.0"
Class Method Summary
- .authorize
- .checkAndRefresh
- .checkToken(token : String, refresh_token : String)
- .createPlaylist
- .getCred
- .getToken(code, gtype = "auth")
- .refreshToken(token : String)
- .refreshToken(token : Credentials::Token)
- .run
- .savePlaylist(id : String)
- .saveToken(token : Spotify::TokenResponse)
- .startServer(server : Nil)
- .startServer(server : HTTP::Server)
- .stopServer(server : Nil)
- .stopServer(server : HTTP::Server)
- .theLoop
- .writeCred(cred : Credentials)