owncloud/owncloud.py
def login(self, user_id, password):
        """Authenticate to ownCloud.
        This will create a session on the server.

        :param user_id: user id
        :param password: password
        :raises: ResponseError in case an HTTP error status was returned
        """

        self.__session = requests.session()
        self.__session.verify = self.__verify_certs
        self.__session.auth = (user_id, password)
        # TODO: use another path to prevent that the server renders the file list page
        res = self.__session.get(self.url)
        if res.status_code == 200:
            if self.__single_session:
                # Keep the same session, no need to re-auth every call
                self.__session.auth = None
            return
        self.__session.close()
        self.__session = None
        raise ResponseError(res)
Authenticate to ownCloud.
        This will create a session on the server.

        :param user_id: user id
        :param password: password
        :raises: ResponseError in case an HTTP error status was returned
        
Authenticate to ownCloud.
This will create a session on the server.
Authenticate to ownCloud . This will create a session on the server .
def login(self, user_id, password):
        self.__session = requests.session()
        self.__session.verify = self.__verify_certs
        self.__session.auth = (user_id, password)
        res = self.__session.get(self.url)
        if res.status_code == 200:
            if self.__single_session:
                self.__session.auth = None
            return
        self.__session.close()
        self.__session = None
        raise ResponseError(res)
def login ( self , user_id , password ) : self . __session = requests . session ( ) self . __session . verify = self . __verify_certs self . __session . auth = ( user_id , password ) res = self . __session . get ( self . url ) if res . status_code == 200 : if self . __single_session : self . __session . auth = None return self . __session . close ( ) self . __session = None raise ResponseError ( res )
Authenticate to ownCloud.
Authenticate to ownCloud .
"""Authenticate to ownCloud.
        This will create a session on the server.

        :param user_id: user id
        :param password: password
        :raises: ResponseError in case an HTTP error status was returned
        """ # TODO: use another path to prevent that the server renders the file list page # Keep the same session, no need to re-auth every call
ResponseError in case an HTTP error status was returned
ResponseError in case an HTTP error status was returned
self
user_id
None
password
None