intercom / intercom-node

Node.js bindings for the Intercom API
https://developers.intercom.com
Other
366 stars 116 forks source link

feat(tags): tagContacts feature implementation #387

Open augustogiavedoni opened 11 months ago

augustogiavedoni commented 11 months ago

Why?

The Intercom API exposes a method where we can tag multiple users at once using the tag name. At the moment, this SDK only offers the possibility to tag users one by one using the tag ID.

More information about the API method here.

How?

The implementation of this method is the same as tagCompanies. The only difference is that instead of passing an array of strings called companies, you need to pass an array of strings called users.

The necessary test cases were added (both unit tests and integration tests). Additionally, the documentation was updated.