__init__.py 文件源码

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

项目:splitwise 作者: namaggarwal 项目源码 文件源码
def __init__(self,consumer_key,consumer_secret,access_token=None):
        """ Initializes the splitwise class. Sets consumer and access token

        Args:
            consumer_key (str) : Consumer Key provided by Spliwise
            consumer_secret (str): Consumer Secret provided by Splitwise
            access_token (:obj: `dict`) Access Token is a combination of oauth_token and oauth_token_secret

        Returns:
            A Splitwise Object
        """
        self.consumer = oauth.Consumer(consumer_key, consumer_secret)

        #If access token is present then set the Access token
        if access_token:
            self.setAccessToken(access_token)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号