twilio/twilio-csharp — Issue #23: json RestException
Author: phaniva
Created: 2012-01-13 20:25:52+00:00
State: open

I am using twilio-csharp 3.2.3.13.
I have made an outbound call using for caller id that was not verified.
I wanted to see how the error are returned.

The Call object returned for InitiateOutboundCall had the Status field populated with 400.
Call.RestException field was null.

By default I understand that the api uses json. From looking at the code it does not appear that Call.RestException would be populated ever.

I have changed the code the code to use xml instead of JSON and Call.RestException populated correctly.

Any idea on why RestException is not populated with JSON.

thanks