Answers for "request html nodejs"

0

request html nodejs

const request = require('request');

request('https://api.nasa.gov/planetary/apod?api_key=DEMO_KEY', { json: true }, (err, res, body) => {
  if (err) { return console.log(err); }
  console.log(body.url);
  console.log(body.explanation);
});
Posted by: Guest on August-25-2021

Browse Popular Code Answers by Language