intercom / intercom-dotnet

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

userResult = usersClient.View(userResult) now throwing Exception rather then giving out NULL #169

Open irachitrastogi opened 3 years ago

irachitrastogi commented 3 years ago

Hi Team, I am using the view client call to check if the user is available at intercom or not, the code that we at our end is to check NULL and now I am getting exceptions if the user does not exist and therefore facing a problem.

Can someone please confirm if the functionality of the API view method is changed? So, that I can change the code accordingly.

Looking forward to a quick response. Thanks!

"var result = new ExternalIntercom.Data.User { id = userId.ToString() }; result = usersClient.View(result);"

This is Throwing an exception now(if the user_id does not exist), but initially, it was a sending NULL if we did not have a user.

Please confirm if this is still the case? Or something has changed.