无需验资code,而使用twilio试验通过消息注册号 [英] No verification code while registering number via message using twilio trial
问题描述
你好我与twilio审判。
Hi I am on trial with twilio.
我已经看到了这个链接:
的https://www.twilio.com/help/faq/twilio-basics/how-does-twilios-free-trial-work
I have seen this link: https://www.twilio.com/help/faq/twilio-basics/how-does-twilios-free-trial-work
它说:你必须确认一个电话号码,然后才能从试用的电话号码发送短信吧。
而且还限制对即将离任的文本
It says "You must verify a phone number before you can send SMS messages to it from your trial phone number." And also restricts on the outgoing text
但如果我只是想,进行验证的数量,使用:
But what if I just want to verfiy the number, using:
var twilio = new TwilioRestClient(
Keys.TwilioSid,
Keys.TwilioToken
);
var result = twilio.SendMessage(
Keys.FromPhone,
message.Destination, message.Body);
// Status is one of Queued, Sending, Sent, Failed or null if the number is not valid
Trace.TraceInformation(result.Status);
// Plug in your SMS service here to send a text message.
return Task.FromResult(0);
我得到空当我尝试验证而那些从仪表板验证从上面code得到验证不在仪表板(网络twilio)的数量。
I get null when I try to verify the number that are not in the dashboard(web twilio) whereas those with verified from dashboard gets the verification from above code.
时它打算?我认为,我们需要能够至少从Web界面进行注册?
Is it intended? I think we need to be able to register at least from web interface?
错误:帐户无权调用。也许你需要启用一些国际权限:twilio.com/user/account/settings/international~~V对于消息XX未经确认的数量。试用帐户无法发送消息未经证实的数字;在twilio.com/user/account/phone-numbers/verified验证XXX,或购买Twilio号码发送消息未经证实的数字
推荐答案
Twilio传道这里。
Twilio evangelist here.
一个试用帐号拥有一批置于其上,包括你只能发短信给核实电话号码的限制。经过验证的电话号码将在号码下的Twilio的仪表板显示>已验证的来电显示:
A trial account has a number of restrictions placed on it, including you can only send SMS messages to verified phone numbers. A verified phone number will show up in your Twilio dashboard under Numbers > Verified Caller IDs:
https://www.twilio.com/user/account/phone-数字/验证
要验证使用.NET助手库号码,拨打像刘易斯AddOutgoingCallerId法显示。
To verify a number using the .NET helper library, call the AddOutgoingCallerId method like Lewis showed.
调用该方法返回给你一个六位数字验证code。那么Twilio会打电话给你要验证,并要求谁的答案,以输入6位数code中的人的数量。如果code进入比赛,Twilio补充说,电话号码作为验证的来电显示,你的发短信给它。
Calling this method returns to you a six digit verification code. Twilio will then call the number that you want to verify and ask the person who answers to enter that 6 digit code. If the code entered matches, Twilio adds that phone number as a Verified Caller ID and you an send text messages to it.
请注意,虽然使用的是试用帐号,消息也将与从Twilio试用帐号发送的消息pfixed $ P $。
Note that while using a Trial account, messages will also be prefixed with the message "Sent from a Twilio Trial account".
如果请求由AddOutgoingCallerId方法制造的Twilio REST API失败(错误的凭据,无效的方法参数等),您可以通过检查RestException属性来确定的:
If the request to the Twilio REST API made by the AddOutgoingCallerId method fails (wrong credentials, invalid method parameters, etc), you determine this by checking the RestException property:
var result = twilio.AddOutgoingCallerId("+15555555555","Verified Number",null,null);
if (result.RestException!=null) {
Debug.Writeline(result.RestException.Message);
}
希望有所帮助。
这篇关于无需验资code,而使用twilio试验通过消息注册号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!