A Hubot script for generating short goo.gl URLs with public click analytics.
See src/googl.coffee
for full documentation.
-
Install the hubot-googl module as a Hubot dependency by running:
npm install --save hubot-googl
-
Enable the module by adding the hubot-googl entry to your
external-scripts.json
file:[ "hubot-googl" ]
-
Run your bot and see below for available config / commands
Variable | Default | Description |
---|---|---|
GOOGLE_API_KEY |
N/A | A unique developer API key is required to use Google's URL Shortener API |
Command | Listener ID | Description |
---|---|---|
hubot shorten url |
googl.shorten |
Creates a new short URL with url |
user1>> hubot shorten http://docs.gl/
hubot>> user1: http://goo.gl/b2ddNc