How do I get response headers with result on successful call?
apiV1KC.get('/timestamp', async function(req, res) {
try {
const getTimestampRl = await KucoinAPI.rest.Others.getTimestamp();
//res.set(headers);
res.send(getTimestampRl); // Send the response back to the requester
} catch (error) {
res.status(500).send(error); // Send error response in case of an error
}
});
How do I get response headers with result on successful call?