我是Twilio帐户的新用户并且仍然无法找到我帐户的路径编号但无法找到它。
请帮助我知道找到它的步骤/链接。
由于 巴拉吉
答案 0 :(得分:0)
常见问题解答为您提供了trial works的概述。
一旦你"购买"您的试用号码(在试用期间不会花费任何费用),您可以make calls:
# Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioRestClient
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
auth_token = "your_auth_token"
client = TwilioRestClient(account_sid, auth_token)
call = client.calls.create(url="http://demo.twilio.com/docs/voice.xml",
to="+1XXXXXXXXXX", # Number verified with Twilio for trial account.
from_="+1XXXXXXXXXX")
print(call.sid)
和send sms进行测试。
from twilio.rest import TwilioRestClient
# put your own credentials here
ACCOUNT_SID = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
AUTH_TOKEN = "your_auth_token"
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
client.messages.create(
to="+1XXXXXXXXXX", # Number verified with Twilio for trial account.
from_="+1XXXXXXXXXX",
body="This is the ship that made the Kessel Run in fourteen parsecs?",
media_url="https://c1.staticflickr.com/3/2899/14341091933_1e92e62d12_b.jpg"
)