Hej,
currently we are using the intercom-client v.2.10.4 to create a new contact with the role 'user'.
In the version 4.0.0 the API has changed but I cannot create a user with the call 'client.contacts.createUser'.
How can I migrate our project so, I can use the latest version of the intercom client?
Best answer by Oseas
Hey @user1622 ! Oséas here from the Customer Support Specialist team 🕵️
Here's our migration guide . In the latest version, you should still be able to create a user by calling client.contacts.createUser. Here's an example:
const user = await client.contacts.createUser({
externalId: '536e564f316c83104c000020',
phone: '+48370044567',
name: 'Niko Bellic',
avatar: 'https://nico-from-gta-iv.com/lets_go_bowling.jpg #39;,
signedUpAt: 1638203719,
lastSeenAt: 1638203720,
ownerId: '536e564f316c83104c000021',
isUnsubscribedFromEmails: true,
});
If you still have problems making this call after migrating, please reach out to us through the Messenger, and we can look into this further for you 🔎
View original