Awesome
Elixirfm
Last.fm API wrapper for Elixir. (Documentation)
Installation
The package can be installed by:
- Add
elixirfm
to your list of dependencies inmix.exs
:
def deps do
[{:elixirfm, "~> 1.0.0"}]
end
- Ensure
elixirfm
is started in your application:
def application do
[
applications: [
:elixirfm
]
]
end
- Configure API key for LastFm's API by setting Application var in your config
config :elixirfm,
api_key: "<your API key>"
secret_key: "<your SECRET key>"
or by setting system env var with
$ export LASTFM_SECRET_KEY="<your SECRET key>" LASTFM_API_KEY="<your API key>"