api_client.py 文件源码

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

项目:Complete-Bunq-API-Python-Wrapper 作者: PJUllrich 项目源码 文件源码
def headers(self):
        request_id = str(uuid.uuid1())
        headers = {
            'Cache-Control':            'no-cache',
            'User-Agent':               '%s/%s' % (
                self.__agent_name, self.__agent_version),
            'X-Bunq-Client-Request-Id': request_id,
            'X-Bunq-Geolocation':       '0 0 0 0 NL',
            'X-Bunq-Language':          'en_US',
            'X-Bunq-Region':            'en_US'
        }
        if self.session_token is not None:
            headers['X-Bunq-Client-Authentication'] = self.session_token
        elif self.installation_token is not None:
            headers['X-Bunq-Client-Authentication'] = self.installation_token

        return headers
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号