/Elixirfm

Lastfm API wrapper for Elixir

Primary LanguageElixirMIT LicenseMIT

Elixirfm

Last.fm API wrapper for Elixir. (Documentation)

Installation

The package can be installed by:

  1. Add elixirfm to your list of dependencies in mix.exs:
def deps do
  [{:elixirfm, "~> 1.0.0"}]
end
  1. Ensure elixirfm is started in your application:
def application do
  [
    applications: [
      :elixirfm
    ]
  ]
end
  1. 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>"