iterapi/iterapi.py
def updatePassword(self, new_password):
        """
        Updates the current password to the given password

        """
        payload = {
            "newpassword": new_password,
            "confirmpassword": new_password
        }

        response = requests.post(
            Student.LOGIN_URL,
            data=str(payload),
            headers=Student.HEADERS,
            cookies=self.cookies)

        if response.status_code == 200:
            return response.json()
        else:
            print("Error: ", response.status_code)
            return None

        Updates the current password to the given password

        
Updates the current password to the given password
Updates the current password to the given password
def updatePassword(self, new_password):
        payload = {
            "newpassword": new_password,
            "confirmpassword": new_password
        }
        response = requests.post(
            Student.LOGIN_URL,
            data=str(payload),
            headers=Student.HEADERS,
            cookies=self.cookies)
        if response.status_code == 200:
            return response.json()
        else:
            print("Error: ", response.status_code)
            return None
def updatePassword ( self , new_password ) : payload = { "newpassword" : new_password , "confirmpassword" : new_password } response = requests . post ( Student . LOGIN_URL , data = str ( payload ) , headers = Student . HEADERS , cookies = self . cookies ) if response . status_code == 200 : return response . json ( ) else : print ( "Error: " , response . status_code ) return None
Updates the current password to the given password
Updates the current password to the given password
"""
        Updates the current password to the given password

        """
self
new_password