var googleapis = require('googleapis');

/*
 Example of using google apis module to discover the URL shortener module, and shorten
 a url
 @param params.url : the URL to shorten
 */
exports.googleapis = function(params, cb) {
  googleapis.withOpts({ cache: { path: 'public' }}).discover('urlshortener', 'v1').execute(function(err, client) {
    console.log('executing');
    console.log('dirname is ' + __dirname);
    var req1 = client.urlshortener.url.insert({
      longUrl: params.url || 'https://www.feedhenry.com'
    });

    console.log(req1);
    req1.withApiKey('AIzaSyDXhUKCJN9icV9oFJLSocP73jNtAB_TZEM');
    req1.execute(function(err, response) {
      console.log(err);
      console.log('Short URL is', response.id);
      return cb(null, response);
    });
  });
};
@@ -569,49 +569,44 @@
 Key(
-'AIzaSyDXhUKCJN9icV9oFJLSocP73jNtAB_TZEM'
+  %3C%3C place google API key here  %3E%3E  
 );%0A 
@@ -768,8 +768,9 @@
   %7D);%0A%7D;
+%0A

remove api key