This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,13 @@ def _authenticate(self):
64
64
"""Authenticate user and generate token."""
65
65
self .cleanup_headers ()
66
66
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
+ })
68
74
69
75
if isinstance (data , dict ) and data .get ('success' ):
70
76
data = data .get ('data' )
@@ -82,9 +88,7 @@ def cleanup_headers(self):
82
88
headers = {'Content-Type' : 'application/json' }
83
89
headers ['Authorization' ] = self .__token
84
90
self .__headers = headers
85
-
86
- params = {'email' : self .__username , 'password' : self .__password }
87
- self .__params = params
91
+ self .__params = {}
88
92
89
93
def query (self ,
90
94
url ,
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ def readme():
11
11
setup (
12
12
name = 'pyarlo' ,
13
13
packages = ['pyarlo' ],
14
- version = '0.2.1 ' ,
14
+ version = '0.2.2 ' ,
15
15
description = 'Python Arlo is a library written in Python 2.7/3x ' +
16
16
'that exposes the Netgear Arlo cameras as Python objects.' ,
17
17
long_description = readme (),
You can’t perform that action at this time.
0 commit comments