Current section

Files

Jump to
yt_potion lib yt_potion_parser.ex
Raw

lib/yt_potion_parser.ex

defmodule YtPotion.Parser do
def parse_json_body({status, response} = {_, %HTTPoison.Response{}}) do
{ _, json_data } = JSON.decode(response.body)
json_data
end
end