https://github.com/jrichocean/elixirfm
Lastfm API wrapper for Elixir
https://github.com/jrichocean/elixirfm
elixir hex lastfm lastfm-api
Last synced: 8 months ago
JSON representation
Lastfm API wrapper for Elixir
- Host: GitHub
- URL: https://github.com/jrichocean/elixirfm
- Owner: jrichocean
- License: mit
- Created: 2016-10-01T00:04:55.000Z (over 9 years ago)
- Default Branch: root
- Last Pushed: 2020-11-05T07:53:50.000Z (over 5 years ago)
- Last Synced: 2024-12-12T07:48:47.196Z (over 1 year ago)
- Topics: elixir, hex, lastfm, lastfm-api
- Language: Elixir
- Size: 123 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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=""
```