set_session
Set the session id cookies for the HTTP client and Websocket connection
Method of TikTokHTTPClient.
Set the session id cookies for the HTTP client and Websocket connection
Signature
Section titled “Signature”def set_session(session_id: str | None, tt_target_idc: str | None) -> NoneParameters
Section titled “Parameters”session_id(str | None) — The (must be valid) session IDtt_target_idc(str | None) — The tt-target-idc cookie, i.e. the data center holding the user’s account credentials. (e.g. eu-ttp2)
Returns
Section titled “Returns”None — None
Import
Section titled “Import”from TikTokLive.client.web.web_base import TikTokHTTPClient