semanticart / url_unroller

A simple url unroller (un-shortener) in elixir

Home Page:https://hexdocs.pm/url_unroller/api-reference.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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/", ...}

About

A simple url unroller (un-shortener) in elixir

https://hexdocs.pm/url_unroller/api-reference.html

License:MIT License


Languages

Language:Elixir 100.0%