Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jrichocean/Elixirfm

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

elixir hex lastfm lastfm-api

Last synced: about 1 month ago
JSON representation

Lastfm API wrapper for Elixir

Awesome Lists containing this project

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=""
```