Di - Elixir Wrapper for DI.FM
Installation
If available in Hex, the package can be installed as:
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
- /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 structsResponse will come in the form of a {:ok, body} or {:error, reason} tuple.