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.
Signature
Section titled “Signature”class ClientRoute(ABC)
ClientRoute(web: TikTokHTTPClient)Instantiate a route
Parameters
Section titled “Parameters”web(TikTokHTTPClient) — An instance of the HTTP client the route belongs to
ABC
Import
Section titled “Import”from TikTokLive.client.web.web_base import ClientRoute