consthttps = require('https');consturl = 'https://api.aijimy.com/get?pin=XXXXXXXX&code=extract-address&text=xxx';https.get(url, (resp) => {letdata = '';// A chunk of data has been received.resp.on('data', (chunk) => {data += chunk; });// The whole response has been received. Print out the result.resp.on('end', () => {console.log(JSON.parse(data)); });}).on("error", (err) => {console.log("Error: " + err.message);});
consthttps = require('https');consturl = 'https://api.aijimy.com/get?pin=XXXXXXXX&code=extract-address&text=xxx';https.get(url, (resp) => { let data = '';// A chunk of data has been received. resp.on('data', (chunk) => { data += chunk; });// The whole response has been received. Print out the result. resp.on('end', () => { console.log(JSON.parse(data)); });}).on("error", (err) => { console.log("Error: " + err.message);});
const https = require('https');const url = 'https://api.aijimy.com/get?pin=XXXXXXXX&code=extract-address&text=xxx';https.get(url, (resp) => { let data = '';// A chunk of data has been received.resp.on('data', (chunk) => { data += chunk; });// The whole response has been received. Print out the result.resp.on('end', () => {console.log(JSON.parse(data)); });}).on("error", (err) => {console.log("Error: " + err.message);});