Can I return Intercom user data to my server using NodeJS?

  • 5 November 2021
  • 1 reply
  • 86 views

var Intercom = require('intercom-client');
const client = new Intercom.Client({ token: my_token});
client.users.list(function (err, d) {
// err is an error response object, or null
// d is a successful response object, or null
try{
console.log('success')
}catch(err){
console.error(err)
}
});

 I need to fetch the users data from intercom to my server. I fellow the instruction https://github.com/intercom/intercom-node.But I don't know if I connect my workspace or not. And the second snap only return d as null.


1 reply

Userlevel 1

Hey @roy s11​, as our resident integrations king, do you think you might be able to help out here?

Reply