module BBCR1_Spotify

Defined in:

BBCR1_Spotify.cr
BBCR1_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

Class Method Detail

def self.authorize #

[View source]
def self.checkAndRefresh #

[View source]
def self.checkToken(token : String, refresh_token : String) #

[View source]
def self.createPlaylist #

[View source]
def self.getCred #

[View source]
def self.getToken(code, gtype = "auth") #

[View source]
def self.refreshToken(token : String) #

[View source]
def self.refreshToken(token : Credentials::Token) #

[View source]
def self.run #

[View source]
def self.savePlaylist(id : String) #

[View source]
def self.saveToken(token : Spotify::TokenResponse) #

[View source]
def self.startServer(server : Nil) #

[View source]
def self.startServer(server : HTTP::Server) #

[View source]
def self.stopServer(server : Nil) #

[View source]
def self.stopServer(server : HTTP::Server) #

[View source]
def self.theLoop #

[View source]
def self.writeCred(cred : Credentials) #

[View source]