class Tidal::API::Client

Defined in:

api/client.cr

Constant Summary

DEFAULT_ENDPOINT = "https://api.tidalhifi.com/v1/"
LOSSLESS_TOKEN = "kgsOOmYk3zShYrNP"
LOSSY_TOKEN = "4zx46pyr9o8qZNRw"

Constructors

Instance Method Summary

Constructor Detail

def self.new(country_code : String = "US", limit : Int32 = 1000, quality : AudioQuality = AudioQuality::High) #

[View source]

Instance Method Detail

def album_art_urls(album_art_uuid) #

[View source]
def artist_pic_urls(pic_uuid) #

[View source]
def authenticate(username, password) #

[View source]
def country_code : String #

[View source]
def get_album(album_id) #

[View source]
def get_album_tracks(album_id) #

[View source]
def get_artist(artist_id) #

[View source]
def get_artist_compilations(artist_id) #

[View source]
def get_artist_eps_and_singles(artist_id) #

[View source]
def get_artist_top_tracks(artist_id, limit = 10) #

[View source]
def get_favorite_albums #

[View source]
def get_favorite_artists #

[View source]
def get_favorite_playlists #

[View source]
def get_favorite_tracks #

[View source]
def get_featured_albums #

[View source]
def get_playlist(uuid) #

[View source]
def get_playlist_tracks(uuid) #

[View source]
def get_similar_artists(artist_id) #

[View source]
def get_track(track_id) #

[View source]
def get_track_stream_url(track_id) #

[View source]
def get_user_playlists #

[View source]
def limit : Int32 #

[View source]
def load_session(filename = "./tidal.session") #

[View source]
def quality : AudioQuality #

[View source]
def request(path, method = :get, params = {} of String => String, form = {} of String => String) #

[View source]
def save_session(output_file = "./tidal.session") #

[View source]
def search(query, type : U.class, limit = 25, offset = 0) forall U #

[View source]
def session_id : String | Nil #

[View source]
def user_id : Int32 | Nil #

[View source]