text.py 文件源码

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

项目:text_support 作者: hackmh 项目源码 文件源码
def _get_twilio_client(cls):
        """
        A singleton method for getting a twilio rest client.

        Returns:
            TwilioRestClient: The twilio client we'll use for sending text
            messages.
        """
        if not cls.twilio_client:
            account_sid = os.environ["TWILIO_ACCOUNT_SID"]
            auth_token = os.environ["TWILIO_AUTH_TOKEN"]
            cls.twilio_client = TwilioRestClient(account_sid, auth_token)

        return cls.twilio_client
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号