twilio.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:yo 作者: steemit 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号