title: Cloud Functions for Firebase: Make a Get Request and return body
body: <p>I am implementing Cloud Functions for Firebase, where when triggered makes a GET request and I want it to return the body, but it doesn't return anything.</p>
  
  <pre><code>"use strict";
  var functions = require('firebase-functions');
  var request = require('request');
  var rp = require('request-promise');
  exports.date = functions.https.onRequest((req, res) =&gt; {
  
  
  var url = 'https://api.pipl.com/search/?url=https://www.linkedin.com/in/akberaliengineer/&amp;key=BUSINESS-PREMIUM-DEMO-vg6sygfm5wgnvpznkl8btq7c'
  
  return request(url, function (error, response, body) {
  
    res.send(body);
  });
  });
  </code></pre>
  
  <p>Can anyone tell me what am I doing wrong?</p>