Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/semanticart/url_unroller

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

Last synced: 8 days ago
JSON representation

A simple url unroller (un-shortener) in elixir

Awesome Lists containing this project

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