const https = require('https');
const options = {
'method': 'GET',
'hostname': 'tianyan.apistd.com',
'path': '/v2/life/check/image?key=your_access_key_here&imageId=048d932539fd42a7b3a83310b88*****'
};
const req = https.request(options, (res) => {
const chunks = [];
res.on("data", (chunk) => {
chunks.push(chunk);
});
res.on("end", (chunk) => {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", (error) => {
console.error(error);
});
});
req.end();