Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Login(self, username, password):
- self.username = username
- self.password = password
- body = self.post('https://arlo.netgear.com/hmsweb/login/v2', {'email': self.username, 'password': self.password}, 'Login')
- self.headers = {
- 'DNT':'1',
- 'Host': 'arlo.netgear.com',
- 'Referer': 'https://arlo.netgear.com/',
- 'Authorization': body['token']
- }
- self.user_id = body['userId']
- return body
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement