From e827c0a8f7cff58693efa74044909ffdf1133d44 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Thu, 24 Jan 2019 17:44:21 +0300 Subject: [PATCH 1/3] update requirements --- requirements.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index c64a9f5..6832d4f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 From 63da48095ad10f582712a1905e0f045e3957a899 Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Thu, 24 Jan 2019 18:31:30 +0300 Subject: [PATCH 2/3] use header for auth --- logs_api/client.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/logs_api/client.py b/logs_api/client.py index 6639697..3202de6 100644 --- a/logs_api/client.py +++ b/logs_api/client.py @@ -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) From d4b12e8c10e487340a535a33349afddc12c2064f Mon Sep 17 00:00:00 2001 From: Nikolay Volosatov Date: Thu, 24 Jan 2019 18:38:36 +0300 Subject: [PATCH 3/3] bump version 0.1.1 --- version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.py b/version.py index 85e14fa..c5fb60f 100644 --- a/version.py +++ b/version.py @@ -12,4 +12,4 @@ """ __app__ = 'appmetrica-logsapi-loader' -__version__ = '0.1.0' +__version__ = '0.1.1'