You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何不使用Preview API编程验证Twilio发送号码是否为活跃号码?

编程验证Twilio发送方电话号码是否为活跃号码

我正在开发一个集成应用,需要通过编程方式验证Twilio发送方电话号码是否属于活跃号码。我了解到有一个针对Active Number资源的Preview API可以实现该功能,但这个预览版API尚未发布,无法使用。想请教有没有已发布的API能返回这类信息?

更新1:计划采用的代码实现

TwilioClient.Init(accountSid, authToken);

var incomingPhoneNumbers = IncomingPhoneNumberResource.Read(limit: 20);

foreach (var record in incomingPhoneNumbers)
{
    // do some magic here
}

更新2:线程安全的代码实现

var phoneNumbers = await IncomingPhoneNumberResource.ReadAsync(limit: 50, client: new TwilioRestClient(integration.AccountSid, integration.AuthToken));

内容的提问来源于stack exchange,提问作者Eugene

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.25 03:35:55