def sms_confirm(self, username, password): resp = self.session.post(Url.login(), data=json.dumps(data), headers={'Content-Type': 'application/json'}) resp = self.session.post(Url.challenge(c_id), data=json.dumps(data_resp), headers={'Content-Type': 'application/json'}) resp = self.session.post(Url.login(), data=json.dumps(data), headers={ 'Content-Type': 'application/json', 'X-ROBINHOOD-CHALLENGE-RESPONSE-ID': c_id })
def insecure_login(self): self.prompt_login() resp = self.session.post(Url.login(), data=json.dumps(data), headers={'Content-Type': 'application/json'}) self.logged_in = True # make account request to get current info self.account = self.account_info()['results'][0]