Skip to content

ClientRoute

Base class for callable API routes. Provides dependency injection of the shared ``TikTokHTTPClient`` and a logger; each subclass defines its own ``__call__`` signature with concrete parameter and return types.

Base class for callable API routes. Provides dependency injection of the shared TikTokHTTPClient and a logger; each subclass defines its own __call__ signature with concrete parameter and return types.

class ClientRoute(ABC)
ClientRoute(web: TikTokHTTPClient)

Instantiate a route

  • web (TikTokHTTPClient) — An instance of the HTTP client the route belongs to
  • ABC
from TikTokLive.client.web.web_base import ClientRoute

TikTokLive/client/web/web_base.py:369