@@ -127,17 +127,23 @@ async def fetch_hashtag_video_list(self, ch_id: int, cursor: int, count: int):
127127 return data
128128
129129 # 获取指定用户的粉丝列表数据 | Get follower list of specified user
130- async def fetch_user_follower_list (self , sec_user_id : str , count : int , max_time : int ):
130+ async def fetch_user_follower_list (self , sec_user_id : str , count : int = 20 , min_time : int = 0 , page_token : str = "" ):
131131 endpoint = "/api/v1/tiktok/app/v3/fetch_user_follower_list"
132132 data = await self .client .fetch_get_json (
133- f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &max_time= { max_time } " )
133+ f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &min_time= { min_time } &page_token= { page_token } " )
134134 return data
135135
136136 # 获取指定用户的关注列表数据 | Get following list of specified user
137- async def fetch_user_following_list (self , sec_user_id : str , count : int , max_time : int ):
137+ async def fetch_user_following_list (self , sec_user_id : str , count : int = 20 , min_time : int = 0 , page_token : str = "" ):
138138 endpoint = "/api/v1/tiktok/app/v3/fetch_user_following_list"
139139 data = await self .client .fetch_get_json (
140- f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &max_time={ max_time } " )
140+ f"{ endpoint } ?sec_user_id={ sec_user_id } &count={ count } &min_time={ min_time } &page_token={ page_token } " )
141+ return data
142+
143+ # 获取指定直播间的数据 | Get data of specified live room
144+ async def fetch_live_room_info (self , room_id : str ):
145+ endpoint = "/api/v1/tiktok/app/v3/fetch_live_room_info"
146+ data = await self .client .fetch_get_json (f"{ endpoint } ?room_id={ room_id } " )
141147 return data
142148
143149 # TikTok直播间排行榜 | Get live room ranking list
0 commit comments