elixirfm v1.0.1 Elixirfm

A simple wrapper for the Lastfm API.

Link to this section Summary

Functions

get_request/1 takes name of uri as string and returns a response/0, if wanting to pass url params see get_request/2

get_request/2 takes name of the lastfm uri "/artist" as string and a map or list of tuples for url params and returns a response/0.

Link to this section Types

Specs

response() :: {atom(), struct()}

Link to this section Functions

Link to this function

get_request(uri)

Specs

get_request(lastfm_uri :: String.t()) :: response()

get_request/1 takes name of uri as string and returns a response/0, if wanting to pass url params see get_request/2

Link to this function

get_request(uri, args)

Specs

get_request(
  lastfm_uri :: String.t(),
  params_and_opts :: map() | [{any(), any()}, ...] | []
) :: response()

get_request/2 takes name of the lastfm uri "/artist" as string and a map or list of tuples for url params and returns a response/0.