title: Response from Foursquare Api is undefined- Node.js
body: <p>I want to get a photo from a foursquare venue using request in Node.js platform.
  My id and secret are of course valid,and with this code i have the below result.However i want to get the prefix and suffix of the image in order to create the image as shown in Foursquare api <a href="https://developer.foursquare.com/docs/api/venues/photos" rel="nofollow noreferrer">https://developer.foursquare.com/docs/api/venues/photos</a></p>
  
  <p>The result as shown in the second image keeps being undefined,no matter if i try to reach meta or response or anything.What am i doing wrong?
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>const request = require('request');
  request({
    url: 'https://api.foursquare.com/v2/venues/59aa0677e17910245d942204/photos',
    method: 'GET',
    qs: {
      client_id: 'my_id',
      client_secret: 'my_secret',
      ll: '40.7243,-74.0018',
      query: 'coffee',
      v: '20171114',
      limit: 1
    }
  }, function(err, res, body) {
    if (err) {
      console.error(err);
    } else {
      console.log(body);
    }
  });</code></pre>
  </div>
  </div>
  
  <a href="https://i.stack.imgur.com/7cVUF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7cVUF.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/wfVZ2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wfVZ2.png" alt="enter image description here"></a></p>