beats-clj.core
artist-get
(artist-get artist-id)
Get an data object for a given artist.
artist-list-albums
(artist-list-albums artist-id & {:keys [essential offset limit order-by streamable future_streamable never_streamable], :or [essential false]})
Get a list of albums for a given artist.
artist-list-tracks
(artist-list-tracks artist-id & {:keys [offset limit order-by streamable future_streamable never_streamable]})
Get a list of tracks for a given artist.
audio-get
(audio-get track-id & {:keys [auth]})
Get an data object for a given artist. (Requires auth token.)
genre-get
(genre-get genre-id & {:keys [auth]})
Get an data object for a given artist. (Requires auth token.)
genre-list
(genre-list genre-id type & {:keys [auth limit offset]})
Get a list of items for a specific genre. (Requires auth token.)
genres
(genres & {:keys [limit offset]})
Get a list of all genres.
image
(image type id & {:keys [size], :or {size :medium}})
Returns default image for albums, genres, artists, tracks, playlists and users.
library-add
(library-add user-id track-ids & {:keys [auth]})
Alias of library-modify with action set to :add. (Requires auth token.)
library-list
(library-list user-id & {:keys [auth type offset limit order-by], :or {type :tracks}})
Returns a page of tracks / albums / artists from the auth'd user's library. (Requires auth token.)
library-modify
(library-modify user-id track-ids & {:keys [action auth], :or {action :remove}})
Add or remove one or more tracks to your library; Returns nil (Requires auth token.)
library-remove
(library-remove user-id track-ids & {:keys [auth]})
Alias of library-modify with action set to :remove. (Requires auth token.)
me
(me & {:keys [auth]})
Get the authenticated user's user_id. (Requires auth token.)
playlist-add
(playlist-add playlist-id track-ids & {:keys [auth append], :or {append true}})
Add a given tracks to a given playlist; Adds track in batches of 25; Returns nil (Requires auth token.)
playlist-create
(playlist-create playlist-name & {:keys [auth description access]})
Creates a new playlist. (Requires auth token.)
playlist-get
(playlist-get playlist-id & {:keys [auth]})
Returns the contents of a given playlist. (Requires auth token.)
playlist-list
(playlist-list user-id & {:keys [auth offset limit order-by], :or {offset 0, limit 100, order-by "updated_at desc"}})
Show all playlists in the given account. (Requires auth token.)
recommendations
(recommendations user-id & {:keys [auth timezone timestamp offset limit], :or {timezone "-0800"}})
Get the list of recommended content for a user at a given time of day. (Requires auth token.)
search
(search q & {:keys [search-type entity-type], :or {search-type :standard}})
Search for tracks or albums.
sentence
(sentence user-id place-id activity-id people-id genre-id & {:keys [auth timezone skipped]})
Retrieve the tracks for a given sentence. (Requires auth token.)
sentence-options
(sentence-options user-id & {:keys [auth timezone timestamp], :or {timezone "-0800"}})
Retrieve IDs for sentence creation. (Requires auth token.)
set-app-key!
(set-app-key! app-key)
Set the application (client) key (ID) for the library.
set-app-secret!
(set-app-secret! app-secret)
Set the application secret for the library.
token-request
(token-request code redirect-uri)
Returns an auth token for a given user.
track-get
(track-get track-id)
Gets information about a specific track.