Compute Intermediate Values In A With Construct
with %{id: id} <- get_user(),
url = "/api/#{id}/blogs",
%{status_code: 200, body: body} <- HTTPoison.get(url),
{:ok, decoded_body} <- Poison.decode(body) do
{:ok, decoded_body}
endLast updated