Allows automatic url shortening of post links using goo.gl URL Shortener.
goo.gl is a service that takes long URLs and squeezes them into fewer characters to make a link easier to share, tweet, or email to friends. For example, the short URL http://goo.gl/O2jpy is a convenient shorthand representation for the long URL http://christophercochran.me/.
Goo.gl short URLs are randomly generated, and the mappings of short URLs to long URLs are publicly accessible. Additionally, the short URL to long URL mappings are:
Immutable – once created by you, no one else can change them Irrevocable – once created, they do not expire. Note, however, that Google reserves the right to remove any goo.gl short URL, for example for spam, security or legal reasons
People share a lot of links online. This is particularly true as microblogging services such as Twitter and Google Buzz have grown in popularity. With character limits in tweets, status updates, and other modes of short form publishing, a shorter URL leaves more room to say what's on your mind.
Google's global production infrastructure to provide users with the following benefits:
Stability – reliable service with good uptime Security – warning message if the short URL points to a suspected malware, phishing, or spam website Speed – fast resolution of short URLs (in a few milliseconds)
Why you should get a key
Higher usage limits. Without an API key, we don't know who you are, and we're pretty shy. You'll be subject to anonymous usage limits, and those are very, very low. Your requests will fail when you exceed your limits. With an API key, you'll have very high usage limits — high enough to accommodate most applications' needs. Traffic reports. With an API key, you also get access to fun graphs of your API usage on the APIs Console.
How to get a key
Visit the Google APIs Console and:
Create a project. You can create as many or as few projects as you need. (See the Google APIs Console FAQ for details.) We will generate exactly one key per project. Activate the URL Shortener API. After creating a project, you should see a list of APIs, each with an Activate button. Click on ours. Nab the key. Click "Keys" on the left-hand side to find out about yours. The "Value" is the string you want.
Shortlinks will only be generated on a post save. Don’t want to exceed our limit now do we?