Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2017
898
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. def Login(self, username, password):
  2.         self.username = username
  3.         self.password = password
  4.  
  5.         body = self.post('https://arlo.netgear.com/hmsweb/login/v2', {'email': self.username, 'password': self.password}, 'Login')
  6.         self.headers = {
  7.             'DNT':'1',
  8.             'Host': 'arlo.netgear.com',
  9.             'Referer': 'https://arlo.netgear.com/',
  10.             'Authorization': body['token']
  11.         }
  12.  
  13.         self.user_id = body['userId']
  14.         return body
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement