File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,3 +55,11 @@ def get_weibo_detail_v1(self, id: str):
5555 }
5656 return request_util .get_request (url , params )
5757
58+ def get_user_detail_v1 (self , uid : str ):
59+ url = f"{ config .BASE_URL } /api/weibo/get-user-detail/v1"
60+ params = {
61+ "token" : self .token ,
62+ "uid" : uid ,
63+ }
64+ return request_util .get_request (url , params )
65+
Original file line number Diff line number Diff line change @@ -24,3 +24,8 @@ def test_get_weibo_detail_v1(self):
2424 result , data , message = self .client .weibo .get_weibo_detail_v1 (id = "5062665714010525" )
2525 if result :
2626 print (json .dumps (data , ensure_ascii = False ))
27+
28+ def test_get_user_detail_v1 (self ):
29+ result , data , message = self .client .weibo .get_user_detail_v1 (uid = "2387903701" )
30+ if result :
31+ print (json .dumps (data , ensure_ascii = False ))
You can’t perform that action at this time.
0 commit comments