Add di to your list of dependencies in mix.exs:
def deps do
[
{:di, "~> 0.1.0"},
]
end
Ensure di is started before your application:
def application do
[applications: [:di]]
end
##Currently supported routes
- /track_history (get currently playing/recently played)
- /tracks (get detailed information about a track)
- /channels
- /events
This is very much an incomplete wrapper as there are many extra routes and I'm only adding them as needed. Particularly I have yet to have need for routes that require user auth.
##Usage
iex>Di.Tracks.now()
iex>{:ok, [%Track{}]} //list of Track structs
Response will come in the form of a {:ok, body} or {:error, reason} tuple.