class Spotify::API

Defined in:

BBCR1_Spotify/SpotifyApi.cr

Constant Summary

ENDPOINT = "https://api.spotify.com/v1"
JSONREQ = {"Content-Type" => "application/json"} of String => String

Constructors

Instance Method Summary

Constructor Detail

def self.new(token : String) #

[View source]
def self.new #

[View source]

Instance Method Detail

def addTrackToPlaylist(track : Track, userid : Int32, playlistId : String) #

[View source]
def get(path : String) #

[View source]
def getJSON(path : String) #

[View source]
def post(path : String, headers : Hash(String, String), postData : Hash(String, String)) #

[View source]
def post(path : String, headers : Hash(String, String), postData : String) #

[View source]
def postJSON(path : String, headers : Hash(String, String), postData : Hash(String, String)) #

[View source]
def search(artist : String, title : String) #

[View source]
def setToken(token : String) #

[View source]