Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/semanticart/url_unroller

A simple url unroller (un-shortener) in elixir
https://github.com/semanticart/url_unroller

Last synced: about 2 months ago
JSON representation

A simple url unroller (un-shortener) in elixir

Lists

README

        

UrlUnroller
===========

An example of unrolling short urls in Elixir.

Depends on [HTTPoison](https://hex.pm/packages/httpoison) running as an application. e.g. in your mix.exs

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

Usage:

```elixir
> {status, result, response_info} = UrlUnroller.unroll("http://bit.ly/1Bx0zo8")
{:ok, "http://blog.semanticart.com/", ...}
```