intercom / intercom-dotnet

Intercom API client library for .NET
https://developers.intercom.io/reference
Apache License 2.0
63 stars 53 forks source link

Company tag action does not currently support targeting by company_id #87

Closed theandrewykim closed 6 years ago

theandrewykim commented 6 years ago

Tagging a company with a company_id

Returns a 404. Currently the call is not sending any company data to Intercom on POST.

Labeling as a bug, as this behavior is currently documented.

tagsClient.Tag("new_tag", new List<Company>() { new Company() { id = INTERCOM_ID } });

tagsClient.Tag("new_tag", new List<String>() { INTERCOM_ID }, TagsClient.EntityType.Company);

Seem to work when specifically referencing the internal Intercom Id

thewheat commented 6 years ago

Digging into this, the code extracts just the id / Intercom ID value in several locations

Moving forward

Users can be tagged by supplying a users array. The array contains objects identifying users by their id, email or user_id fields.

Companies can be tagged by sending a companies array. The array contains objects identifying companies by their id or company_id fields.

kmossco commented 6 years ago

Should be fixed by PR #91. Waiting on a review. 👍