def user_id(self):
        """
        User id of the current API user
        """
        if self._user_id is None:
            if self.has_logged_in:
                self._user_id = self._req_get_user_aq()['data']['uid']
            else:
                raise AuthenticationError('Not logged in.')
        return self._user_id
def user_id ( self ) : if self . _user_id is None : if self . has_logged_in : self . _user_id = self . _req_get_user_aq ( ) [ 'data' ] [ 'uid' ] else : raise AuthenticationError ( 'Not logged in.' ) return self . _user_id
User id of the current API user