Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit af86b3b

Browse files
authored
Merge pull request #102 from tchellomello/0.2.2
Version 0.2.2
2 parents 2dc9501 + 71b536d commit af86b3b

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pyarlo/__init__.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,13 @@ def _authenticate(self):
6464
"""Authenticate user and generate token."""
6565
self.cleanup_headers()
6666
url = LOGIN_ENDPOINT
67-
data = self.query(url, method='POST')
67+
data = self.query(
68+
url,
69+
method='POST',
70+
extra_params={
71+
'email': self.__username,
72+
'password': self.__password
73+
})
6874

6975
if isinstance(data, dict) and data.get('success'):
7076
data = data.get('data')
@@ -82,9 +88,7 @@ def cleanup_headers(self):
8288
headers = {'Content-Type': 'application/json'}
8389
headers['Authorization'] = self.__token
8490
self.__headers = headers
85-
86-
params = {'email': self.__username, 'password': self.__password}
87-
self.__params = params
91+
self.__params = {}
8892

8993
def query(self,
9094
url,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def readme():
1111
setup(
1212
name='pyarlo',
1313
packages=['pyarlo'],
14-
version='0.2.1',
14+
version='0.2.2',
1515
description='Python Arlo is a library written in Python 2.7/3x ' +
1616
'that exposes the Netgear Arlo cameras as Python objects.',
1717
long_description=readme(),

0 commit comments

Comments
 (0)