Rocksky.Song (Rocksky v0.1.0)

Copy Markdown View Source

app.rocksky.song.* endpoints.

Summary

Functions

Create a song. Body contains title, artist, album, etc.

Fetch a song by :uri, :mbid, :isrc, or :spotifyId.

Recent listeners for a song. Params: :uri, :limit, :offset.

List songs. Params: :limit, :offset, :genre, :mbid, :isrc, :spotifyId.

Find an existing song by metadata. Params: :title, :artist, :mbId, :isrc.

Functions

create_song(client, body)

Create a song. Body contains title, artist, album, etc.

get_song(client, params \\ [])

Fetch a song by :uri, :mbid, :isrc, or :spotifyId.

get_song_recent_listeners(client, params \\ [])

Recent listeners for a song. Params: :uri, :limit, :offset.

get_songs(client, params \\ [])

List songs. Params: :limit, :offset, :genre, :mbid, :isrc, :spotifyId.

match_song(client, params \\ [])

Find an existing song by metadata. Params: :title, :artist, :mbId, :isrc.