def __init__(self, account_sid=None, auth_token=None, from_number=None):
"""Transport implementation for twilio
Args:
account_sid(str): the account id for twilio
auth_token(str): the auth token for twilio
from_number(str): the twilio number to send from
"""
self.can_send = False
if account_sid and auth_token and from_number:
self.can_send = True
self.client = Client(account_sid, auth_token)
self.from_number = from_number
# pylint: disable=global-statement
global logger
logger = logger.bind(can_send=self.can_send)
logger.info('configured')
# pylint: disable=arguments-differ
评论列表
文章目录