Skip to content
A simple url unroller (un-shortener) in elixir
Elixir
Latest commit 5e2dc16 Feb 25, 2016 @semanticart Version bump

README.md

UrlUnroller

An example of unrolling short urls in Elixir.

Depends on HTTPoison running as an application. e.g. in your mix.exs

  def application do
    [applications: [:logger, :httpoison]]
  end

Usage:

> {status, result, response_info} = UrlUnroller.unroll("http://bit.ly/1Bx0zo8")
{:ok, "http://blog.semanticart.com/", ...}
Something went wrong with that request. Please try again.