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
api_client.py 文件源码
python
阅读 35
收藏 0
点赞 0
评论 0
评论列表
文章目录