Project

lita-googl

0.0
No commit activity in last 3 years
No release in over 3 years
Lita handler - shorten URL via Google URL Shortener API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

< 1.0
>= 4.3
 Project Readme

lita-googl

Build Status Coverage Status Code Climate Gem Version

lita-googl is a handler for Lita that shortens URLs via URL Shortener API

Installation

Add lita-googl to your Lita instance's Gemfile:

gem "lita-googl"

Configuration

Add the configuration lines (listed below) to your application lita_config.rb

Secure it

You may "hide" your API key from the application config like this
config.handlers.googl.api_key=ENV['GOOGL_API_KEY'] and in your terminal

$ GOOGL_API_KEY=XXXXXXXX
$ export GOOGL_API_KEY
$ # Ensure it's there
$ echo $GOOGL_API_KEY
XXXXXXXX

Usage

22:55 <SecretR> ZaraRobo googl http://zaralab.org/
22:55 <ZaraRobo> SecretR http://goo.gl/x5PsTf