(I know there is a parameter for detailed, please read) Is there another call to make for detailed instead of simple? In Python I would just add '"view" : "Detailed"' in my params and the output would let me parse through all of the detailed output. However, when adding the detailed param in C# the SDK doesn't have the detailed keys so it throws errors when trying to parse through them.
This is what I'm using
- ListAnsweringRulesParameters listAnsweringRulesParameters = new ListAnsweringRulesParameters
- {
- view = "Detailed",
- enabledOnly = true,
- };
- Â
- var handleIDs = await rc.Restapi().Account("~").Extension(ext.id.ToString()).AnsweringRule().List(listAnsweringRulesParameters);
- Â
- var fwdId = handleIDs.records"0].forwarding.rules"0].forwardingNumbers"0].id;
- var fwdType = handleIDs.records"0].forwarding.rules"0].forwardingNumbers"0].type;
The SDK doesn't have a "forwarding" key (in fwdId and fwdType) after "recordsd0]" so it throws me an error, even though I'm requesting a detailed list
Trying to use the ID/Type to set the users default answering rule, if there's a more simplistic way of doing it please let me know