Can fetch an artist info from Last.fm

This commit is contained in:
Claudio Ortolina
2024-12-01 18:06:30 +00:00
parent b63b3a633a
commit 2d721774d6
7 changed files with 1975 additions and 4 deletions
+3 -1
View File
@@ -1,7 +1,9 @@
defmodule LastFm.APIBehaviour do
alias LastFm.Track
alias LastFm.{Artist, Track}
@type musicbrainz_id :: String.t()
@type user :: String.t()
@type api_key :: String.t()
@callback get_recent_tracks(user, api_key) :: {:ok, [Track.t()]} | {:error, String.t()}
@callback get_artist_info(musicbrainz_id, api_key) :: {:ok, Artist.t()} | {:error, String.t()}
end