Popularity
1.8
Declining
Activity
0.0
Stable
8
2
2

Monthly Downloads: 0
Programming language: Elixir
License: MIT License
Tags: Third Party APIs    
Latest version: v1.0.0

link_shrinkex alternatives and similar packages

Based on the "Third Party APIs" category.
Alternatively, view link_shrinkex alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of link_shrinkex or a related project?

Add another 'Third Party APIs' Package

README

LinkShrinkex (v1.0.0) Build Status

Create short URLs using Google's URL Shortener API. Written in Elixir.

Quickstart

Fetching dependencies and running on elixir console:

mix deps.get
iex -S mix

You can also run the tests:

mix test

Usage

iex> LinkShrinkex.shrink_url "http://www.elixir-lang.org"
{:ok, "http://goo.gl/Shz0u"}

iex> LinkShrinkex.shrink_url "http://www.elixir-lang.org", [:json]
{:ok,"{\"kind\":\"urlshortener#url\",\"id\":\"http://goo.gl/Shz0u\",\"longUrl\":\"http://www.elixir-lang.org/\"}"}

iex> LinkShrinkex.shrink_url "http://www.elixir-lang.org", [:list]  
{:ok,[kind: "urlshortener#url", id: "http://goo.gl/Shz0u", longUrl: "http://www.elixir-lang.org/"]}

iex> LinkShrinkex.shrink_url "http://www.elixir-lang.org", [:urls]  
{:ok,[id: "http://goo.gl/Shz0u", longUrl: "http://www.elixir-lang.org/"]}

Enjoy!

Author

Contributing

Fork this repo

Then run this command to fetch dependencies and run tests:

MIX_ENV=test mix do deps.get, test

Create a Pull Request :)