如何使用CallSId获取FromCity呼叫名称

时间:2016-10-06 10:54:47

标签: c# twilio-api

我想要在https://www.twilio.com/console/voice/logs/calls请求检查员的通话记录中显示的来自城市,呼叫状态名称。我的代码在C#中,我使用Twilio.TwilioRestClient(AccountID,token)连接Twilio的API

CallResult calls = twilio.ListCalls(request);
var inb = (from c in calls.Calls
          where c.Direction.Contains("inbound")
          select c).ToList();

foreach (Call c in inb) {
       IncomingPhoneNumberResult phone = twilio.ListIncomingPhoneNumbers(c.From, null, null, null);
}

0 个答案:

没有答案