run¶
- YouTubeNotifier.run(*, host: str = '0.0.0.0', port: int = 8000, app: FastAPI = None, log_level: int = 30, **kwargs: Any) None¶
Run the notifier to receive push notifications. This method will block until the notifier is stopped.
- Parameters:
host – The host to run the server on.
port – The port to run the server on.
app – The FastAPI app to use. If not provided, a new app will be created.
log_level – The log level to use for the uvicorn server.
kwargs – Additional arguments to pass to the Config class of uvicorn.