platypush/plugins/nextcloud/__init__.py
def mark_favorite(self, path: Optional[str] = None, user_id: Optional[str] = None, **server_args):
        """
        Add a path to a user's favorites.

        :param path: Resource path.
        :param user_id: User ID associated to the resource (default: same as the configured user).
        :param server_args: Override the default server settings (see :meth:`._get_client` arguments).
        """
        user_id = user_id or server_args.get('username', self.conf.username)
        self._execute(server_args, 'set_favorites', user_id, path)

        Add a path to a user's favorites.

        :param path: Resource path.
        :param user_id: User ID associated to the resource (default: same as the configured user).
        :param server_args: Override the default server settings (see :meth:`._get_client` arguments).
        
Add a path to a user's favorites.
Add a path to a user ' s favorites .
def mark_favorite(self, path: Optional[str] = None, user_id: Optional[str] = None, **server_args):
        user_id = user_id or server_args.get('username', self.conf.username)
        self._execute(server_args, 'set_favorites', user_id, path)
def mark_favorite ( self , path : Optional [ str ] = None , user_id : Optional [ str ] = None , ** server_args ) : user_id = user_id or server_args . get ( 'username' , self . conf . username ) self . _execute ( server_args , 'set_favorites' , user_id , path )
Add a path to a user's favorites.
Add a path to a user ' s favorites .
"""
        Add a path to a user's favorites.

        :param path: Resource path.
        :param user_id: User ID associated to the resource (default: same as the configured user).
        :param server_args: Override the default server settings (see :meth:`._get_client` arguments).
        """
self
path
Optional[str]
None
user_id
Optional[str]
User ID associated to the resource (default: same as the configured user).
User ID associated to the resource ( default : same as the configured user ) .
server_args
Override the default server settings .
Override the default server settings .