Skip to content

Commit

Permalink
Merge pull request #4 from yandexmobile/fix-auth
Browse files Browse the repository at this point in the history
Fix auth
  • Loading branch information
bamx23 authored Jan 24, 2019
2 parents f80106c + d4b12e8 commit 01db7cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
6 changes: 4 additions & 2 deletions logs_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ def app_creation_date(self, app_id: str) -> str:
app_id=app_id
)
params = {
'oauth_token': self.token
}
headers = {
'User-Agent': self._user_agent
'User-Agent': self._user_agent,
'Authorization': 'OAuth {token}'.format(
token=self.token
)
}

r = requests.get(url, params=params, headers=headers)
Expand Down
8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ certifi==2017.7.27.1
chardet==3.0.4
click==6.7
idna==2.5
numpy==1.13.1
pandas==0.20.3
numpy==1.16.0
pandas==0.23.4
python-dateutil==2.6.1
python-dotenv==0.6.4
pytz==2017.2
requests==2.18.2
requests==2.20.0
six==1.10.0
urllib3==1.22
urllib3==1.23
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
"""

__app__ = 'appmetrica-logsapi-loader'
__version__ = '0.1.0'
__version__ = '0.1.1'

0 comments on commit 01db7cb

Please sign in to comment.