如果发件人是美国电话号码,而收件人是韩国电话号码,则传输字符的代码使用以下代码成功。
from twilio.rest import Client
account_sid = "~~~"
auth_token = "~~~"
client = Client(account_sid, auth_token)
call = client.messages.create(
to="+821012341234",# korea phone number : 010-1234-1234
from_="+18442414836", # United States phone number :(844) 241-4836
body=" this is message text contents "
)
但是,当呼叫者拨打美国电话号码而收件人拨打韩国电话号码时,也会发生同样的错误。
from twilio.rest import Client
account_sid = "~~~"
auth_token = "~~~"
client = Client(account_sid, auth_token)
call = client.calls.create(
to="+821012341234",# korea phone number : 010-1234-1234
from_="+18442414836", # United States phone number :(844) 241-4836
url="http://demo.twilio.com/docs/voice.xml"
)
print(call.sid)
twilio.base.exceptions.TwilioRestException: HTTP 400 error: Unable to create record: Account not authorized to call +821012341234. Perhaps you need to enable some international permissions: https://www.twilio.com/user/account/settings/international
如何拨打韩国电话号码?
我想知道它是否是免费版,并且发送测试到韩国电话号码是有限制的。