let options = { host: hostname, port: '443', path: api+querystring, method: 'GET', headers: { 'Content-Type': 'application/json', } };
let req = https.request(options, (res)=> { //-----Working Properly----Status 200--------// res.on('data', (d)=> { console.log(d); //-----Not getting the required data-----// //twiml.message(d.data); callback(null, twiml); }); });