The Google URL Shortener API allows you to shorten URLs just as you would on goo.gl
This is a sample Meteor code that you can use to shorten the url.
Meteor.call("shortenUrl", "http://www.asveloper.com", function(error, result){
if(error){
console.log(error);
}else{
console.log(result);
}
});
{
"kind": "urlshortener#url",
"id": "http://goo.gl/kPDPmF",
"longUrl": "http://www.asveloper.com/"
}
For more details you can visit: https://developers.google.com/url-shortener/v1/getting_started
Arslan Nasir