Py之twilio:python库之twilio的简介、安装、使用方法之详细攻略

Py之twilio:python库之twilio的简介、安装、使用方法之详细攻略


twilio的简介

BUILD THE FUTURE OF COMMUNICATIONS.Engage customers like never before on Voice, SMS, Video, and WhatsAPPs.
       建立通信的未来。像以前从未参与过声音、短信、视频,和一些APP等。
       APIs to create what you imagine, without compromise.Twilio was made for creators like you. We build our APIs to be simple to use, powerful in production, and endlessly scalable.

  • Cloud powered:We're built in the cloud. Our API is always available, continuously upgraded, and auto-scales to meet your needs.
  • Fully featured out of the box:Start running straight from deploy. Enable your Twilio-powered app to do everything from text to speech, Natural Language Understanding, and more. The API is your oyster.
  • Build intelligent communications:Every text and call on Twilio helps fine tune the Super Network, our web of carrier connections all over the globe. This data is yours to use via a powerful web API that helps you optimize the quality and cost of your communications.
  • 云供电:我们建在云端。我们的API始终是可用的,不断升级,并自动秤,以满足您的需求。
  • 充分发挥出方块:开始运行直接从部署。让你的Twilio应用程序可以完成从文本到语音、自然语言理解等所有工作。API是你的牡蛎。
  • 构建智能通信:Twilio上的每个文本和呼叫都有助于微调超级网络,我们的全球运营商连接网络。这些数据可以通过强大的WebAPI使用,帮助您优化通信的质量和成本。

twilio官网

twilio pypi

twilio的安装

pip install twilio

twilio的使用方法

1、python使用教程:https://www.twilio.com/docs/libraries/python

from twilio.rest import Client

# Your Account SID from twilio.com/console
account_sid = "ACd00d06aea8680ad1a7d73e48e7886180"
# Your Auth Token from twilio.com/console
auth_token  = "your_auth_token"

client = Client(account_sid, auth_token)

message = client.messages.create(
    to="+15558675309",
    from_="+15017250604",
    body="Hello from Python!")

print(message.sid)

相关文章推荐
Py之twilio:python库之twilio的注册的那些事

(0)

相关推荐