[英]Twilio c# helper, How do I use this method signature? void AddOutgoingCallerId (phoneNumber, friendlyName, callDelay, callback)
I'm trying to follow the Twilio docs for adding a Caller ID as a verified out going telephone number. 我正在尝试按照Twilio文档添加呼叫者ID作为经过验证的去电电话号码。
The Twilio c# helper library has a method signature which looks like so Twilio c#帮助程序库具有方法签名,如下所示
void AddOutgoingCallerId (phoneNumber, friendlyName, callDelay, callback) 无效AddOutgoingCallerId(phoneNumber,friendlyName,callDelay,回调)
where callback is Action<ValidationRequestResult>
回调为
Action<ValidationRequestResult>
I don't understand this. 我不明白 I'm trying to set a URL that Twilio can post back to once the verification has taken place.
我正在尝试设置一个URL,验证完成后Twilio可以将其发布回该URL。
Help appreciated. 帮助表示赞赏。
You need to implement a method that takes a ValidationRequestResult
and returns void
. 您需要实现一个采用
ValidationRequestResult
并返回void
。 That's the method that will get called. 这就是将被调用的方法。 You provide that method as the callback parameter.
您提供该方法作为回调参数。
Here's your call: 这是您的电话:
AddOutgoingCallerId (phoneNumber, friendlyName, callDelay, HandleAddOutgoingCallerId)
And here's the method that you need to create. 这是您需要创建的方法。
private void HandleAddOutgoingCallerId(ValidationRequestResult result)
{
// Do something (or just return).
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.