Messaging Client using Twilio.
To use, you should have the twilio python package installed,
and the environment variables TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, and
TWILIO_FROM_NUMBER, or pass account_sid, auth_token, and from_number as
named parameters to the constructor.
TwilioAPIWrapper()Example:
.. code-block:: python
from langchain_community.utilities.twilio import TwilioAPIWrapper twilio = TwilioAPIWrapper( account_sid="ACxxx", auth_token="xxx", from_number="+10123456789" ) twilio.run('test', '+12484345508')
Twilio account string identifier.
Twilio auth token.
A Twilio phone number in E.164
format, an
alphanumeric sender ID,
or a Channel Endpoint address
that is enabled for the type of message you want to send. Phone numbers or
short codes purchased from
Twilio also work here. You cannot, for example, spoof messages from a private
cell phone number. If you are using messaging_service_sid, this parameter
must be empty.