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: 8 days ago
JSON representation
A simple url unroller (un-shortener) in elixir
- Host: GitHub
- URL: https://github.com/semanticart/url_unroller
- Owner: semanticart
- License: mit
- Created: 2015-01-07T02:17:45.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-26T02:07:13.000Z (over 7 years ago)
- Last Synced: 2024-10-07T04:49:01.553Z (about 1 month ago)
- Language: Elixir
- Homepage: https://hexdocs.pm/url_unroller/api-reference.html
- Size: 9.77 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Simple URL unroller (un-shortener) in Elixir. (Miscellaneous)
- fucking-awesome-elixir - url_unroller - Simple URL unroller (un-shortener) in Elixir. (Miscellaneous)
- awesome-elixir - url_unroller - Simple URL unroller (un-shortener) in Elixir. (Miscellaneous)
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/", ...}
```