i wish that i better understood this code... well no way but
     to just keep reading it and trying to grok it i suppose.
master
Rachel Fae Fox (foxiepaws) 2019-07-31 01:19:47 -04:00
parent c58430448a
commit d5a243d3c8
1 changed files with 5 additions and 1 deletions

View File

@ -245,7 +245,7 @@ defmodule Hunter.Api.HTTPClient do
def enumerate_lists(conn) do
"/api/v1/lists"
|> process_url(conn)
|> request!(:instance, :get, [], conn)
|> request!(:list, :get, [], conn)
end
def instance_info(conn) do
@ -397,6 +397,10 @@ defmodule Hunter.Api.HTTPClient do
Poison.decode!(body, as: %Hunter.Card{})
end
defp transform(body, :list) do
Poison.decode!(body)
end
defp transform(body, :context) do
Poison.decode!(
body,