intercom / intercom-dotnet

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

How to handle errors with this library? #165

Open bdelavega-maralytix opened 3 years ago

bdelavega-maralytix commented 3 years ago

I'm not sure whether to write an issue or just a question. We've used this library a fair bit, but now I'm trying to troubleshoot errors and don't see how.

Take for example Intercom.Clients.UsersClient.cs. Many methods end with code like this: ClientResponse result = null; result = ... return result.Result;

So an Intercom.Core.ClientResponse is created (which has 3 properties), but only the Result property is returned. If something goes wrong, I'd like to see the Errors and Response properties too. Have you considered providing those?

If not, do you have any advice for the library's consumer on troubleshooting?