Download file with hackney

Download a file with hackney

Simply downloading a file with hackney

{:ok, _, _headers, ref} = :hackney.get(url, [{"Authorization", "Bearer token"}], "", [{:pool, :default}]) {:ok, body} = :hackney.body(ref) File.write!(path, body, [:write, :binary])

Stay up to date

Sign up for the mailing list and get notified via email when new blog posts come out.