Example #1
0
    def update_user(self, username, first_name, last_name, email, password):
        """
        Asks the client to update the user record
        :param username: login name for the user
        :param first_name: The name given to the user for use in an informal setting
        :param last_name: The name of the user's family
        :param email: Email address
        :param password: User's desired password
        :return: nothing
        """

        req = UserRequest()
        req.username = username
        req.first_name = first_name
        req.last_name = last_name
        req.email = email
        req.password = password

        return self._make_request('user?username=%s' % username, data=req.new_user_json(), method='PUT')