NAME
App::Bitly - Shorten URL using the bitly service.
SYNOPSIS
bitly URL
DESCRIPTION
A lightweigth application to shorten URLs using the bit.ly service.
The URLs can be given as arguments to the application. If the application isn't given any arguments, it will read URLs from STDIN.
For each URL, it will print the corresponding shortened URL on STDOUT.
Configuration
The bitly
application uses the API of api.bit.ly. In order to use the API, the login name and an api key are required. The bitly
application takes these values from the environment variables BITLY_LOGIN
and BITLY_API_KEY
. You may want to set those variables in your shell configuration file.
LIMITATIONS
By design, the bitly
application only shortens URLs, and only returns the information in txt
(text) format. If you want to make use of other parts of the API, want to retrieve information in json
or xml
format, or don't want the shorted URL to be printed to STDOUT, please use one of the CPAN modules that give you access to more parts of the API.
BUGS
There are no known bugs.
SEE ALSO
DEVELOPMENT
The current sources of this application are found on github, git://github.com/Abigail/App--Bitly.git.
AUTHOR
Abigail, mailto:cpan@abigail.be.
COPYRIGHT and LICENSE
Copyright (C) 2010 by Abigail.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
INSTALLATION
To install this application, run, after unpacking the tar-ball, the following commands:
perl Makefile.PL
make
make test
make install