我正在尝试通过自动消息通知来电者。下面是我的代码。细绳
string AccountSid = "***************";
string AuthToken = "**************";
var doc = new XDocument();
var call = new XElement("call");
call.Add(new XElement("Say", Message));
doc.Add(call);
var twilio = new TwilioRestClient(AccountSid, AuthToken);
var options = new CallOptions();
options.Url = doc.ToString(); //Don't have URL need to add XML doc instead
options.To = Phone;
options.From = "********";
var callnow = twilio.InitiateOutboundCall(options);