intercom/intercom-dotnet

It's impossible to increment company web session

Closed this issue · 2 comments

Company web session increments only when user and company data are send together in the same request along with attribute new_session = true.

Currently User model does not contain attribute new_session thus it's impossible to increment company session.

Example of the correct request:

{
  "user_id": "123456789",
  "new_session": true,
  "update_last_request_at": true,
  "companies": [
    {
      "company_id": "1234"
    }
  ]
}

You're definitely right, I'll be adding this soon!
Reference for this feature.

@puwalowski I have now rolled a fix for this in #97, where you can either increase a user session + company by sending an Update call with the new_session = true or using the IncrementUserSessions by passing the user id and a list of companies.