A command line tool to access bit.ly URL shortener. http://bitbucket.org/jetxee/hs-bitly/
|Latest on Hackage:||0.1.2|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
This package provides a command line utility to shorten and expand URLs using bit.ly/j.mp service. To use this tool, an API key is required. Please find yours at https://bitly.com/a/account.
Configuration file (
login = your_bit.ly_login apikey = your_API_key
$ echo "Text with an URL: http://example.com/" | bitly Text with an URL: http://bit.ly/2eSq1z $ bitly shorten http://example.com http://bit.ly/2eSq1z $ bitly expand http://bit.ly/2eSq1z http://example.com/