Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/jrichocean/Elixirfm

Lastfm API wrapper for Elixir
https://github.com/jrichocean/Elixirfm

elixir hex lastfm lastfm-api

Last synced: about 2 months ago
JSON representation

Lastfm API wrapper for Elixir

Lists

README

        

# Elixirfm

Last.fm API wrapper for Elixir. [(Documentation)](https://hexdocs.pm/elixirfm/)

### Installation

The package can be installed by:

1. Add `elixirfm` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:elixirfm, "~> 1.0.0"}]
end
```

2. Ensure `elixirfm` is started in your application:

```elixir
def application do
[
applications: [
:elixirfm
]
]
end
```

3. Configure API key for LastFm's API by setting Application var in your config

```elixir
config :elixirfm,
api_key: ""
secret_key: ""
```

or by setting system env var with

```bash
$ export LASTFM_SECRET_KEY="" LASTFM_API_KEY=""
```