Bitly-0.0.3: Bitly.cabal
Name: Bitly
Version: 0.0.3
Cabal-version: >= 1.2
Build-type: Simple
Stability: experimental
Category: Web
License: BSD3
License-file: LICENSE
Maintainer: Sergey Astanin <s.astanin@gmail.com>
Synopsis: A library and a command line tool to access bit.ly URL shortener.
Description:
This package allows to use bit.ly and j.mp URL
shortening service from Haskell. Currently it supports
shorten and expand requests.
.
API key is required. Please find yours at <http://bit.ly/account/>.
.
Configuration file (`~/.bitly`) format:
.
> login = your_bit.ly_login
> apikey = your_API_key
.
Examples (command line utility):
.
> $ 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/
Homepage: http://bitbucket.org/jetxee/hs-bitly/
Bug-reports: http://bitbucket.org/jetxee/hs-bitly/issues/
Tested-with: GHC == 6.10
Library
Build-depends:
base >= 3 && < 5
, HTTP >= 4000
, HaXml
Exposed-modules: Network.Bitly
Executable bitly
Main-is: bitly.hs
Build-depends:
filepath
, directory
, regexpr