gaussian/__init__.py
def login(self):
        """Login to NewsBlur, using session (cookie) authentication."""

        response = self.session.post(self._construct_url('/api/login'),
                                     data={'username': self.username,
                                           'password': self.password})
        # TODO: properly check for success, it appears server always returns
        # 200.
        self._logger.debug(response.content)
        assert response.json()['result'] == 'ok'
        self.logged_in = True
        return True
Login to NewsBlur, using session (cookie) authentication.
Login to NewsBlur, using session (cookie) authentication.
Login to NewsBlur using session ( cookie ) authentication .
def login(self):
        response = self.session.post(self._construct_url('/api/login'),
                                     data={'username': self.username,
                                           'password': self.password})
        self._logger.debug(response.content)
        assert response.json()['result'] == 'ok'
        self.logged_in = True
        return True
def login ( self ) : response = self . session . post ( self . _construct_url ( '/api/login' ) , data = { 'username' : self . username , 'password' : self . password } ) self . _logger . debug ( response . content ) assert response . json ( ) [ 'result' ] == 'ok' self . logged_in = True return True
Login to NewsBlur, using session (cookie) authentication.
Login to NewsBlur using session ( cookie ) authentication .
"""Login to NewsBlur, using session (cookie) authentication.""" # TODO: properly check for success, it appears server always returns # 200.
self