How to Add a Body to a POST Request in Node.js

I’ve looked at infusionsoft-sdk-nodejs without joy and am now using axios to call rest end point. Axios has plenty of decent help on usage.

I couldn’t figure out where to start with sdk-nodejs as example doesn’t work and I suspect you have to deploy as npm module first or clone repository and then include it via local file in package.json - plus it’s actually not complete and is missing end points which makes little sense.

An summarized example for post would be:
axios.post(url, body, {headers: headers})
.then((res) => {
console.log(‘got token’, res.data)
})
.catch((err) => {
console.log('AXIOS Error: ', err)
})