Add Last.Fm function to get session

This commit is contained in:
Claudio Ortolina
2025-05-05 20:07:18 +01:00
parent 7c547f2d80
commit 299cc468b6
2 changed files with 35 additions and 0 deletions
+6
View File
@@ -41,6 +41,12 @@ defmodule LastFm do
end
end
def get_session(token) do
last_fm_config = last_fm_config()
API.get_session(token, last_fm_config)
end
def auth_url do
last_fm_config = last_fm_config()
"https://www.last.fm/api/auth/?api_key=" <> last_fm_config.api_key