tikapi 3.2.0__tar.gz → 3.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tikapi-3.2.0/tikapi.egg-info → tikapi-3.2.1}/PKG-INFO +1 -1
- {tikapi-3.2.0 → tikapi-3.2.1}/setup.py +1 -1
- {tikapi-3.2.0 → tikapi-3.2.1}/tikapi/api.py +10 -2
- {tikapi-3.2.0 → tikapi-3.2.1/tikapi.egg-info}/PKG-INFO +1 -1
- {tikapi-3.2.0 → tikapi-3.2.1}/MANIFEST.in +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/README.md +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/setup.cfg +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/tikapi/__init__.py +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/tikapi.egg-info/SOURCES.txt +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/tikapi.egg-info/dependency_links.txt +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/tikapi.egg-info/not-zip-safe +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/tikapi.egg-info/requires.txt +0 -0
- {tikapi-3.2.0 → tikapi-3.2.1}/tikapi.egg-info/top_level.txt +0 -0
|
@@ -464,6 +464,14 @@ def Rests(options: dict):
|
|
|
464
464
|
|
|
465
465
|
return wrap({"path":"/public/check","help":"Get a user's profile information","comment":"Get profile information and statistics from a username.","params":{"username":{"help":"The TikTok user username","validate":"^([a-zA-Z0-9_.]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","type":"string","example":"lilyachty"},"user_id":{"help":"Optionally you can get the profile information using the user_id parameter.","type":"string","validate":"^[0-9]+$"}},"$other":{"openapi":{"hideParams":["user_id","session_id"],"showExamplesInCode":["username"]}},"method":"GET"}, cls.__get_options__(), "Public.check")(username=username, user_id=user_id, country=country, session_id=session_id, **otherParams)
|
|
466
466
|
|
|
467
|
+
@classmethod
|
|
468
|
+
def checkV3(cls, username: str = None, user_id: str = None, secUid: str = None, country: str = None, session_id: int = None, **otherParams) -> APIResponse:
|
|
469
|
+
'''
|
|
470
|
+
Get a user's profile information (alternative endpoint)
|
|
471
|
+
'''
|
|
472
|
+
|
|
473
|
+
return wrap({"path":"/public/check/v3","help":"Get a user's profile information (alternative endpoint)","comment":"Get profile information and statistics from a username. This endpoint consumes significantly more bandwidth than the other.","params":{"username":{"help":"The TikTok user username","validate":"^([a-zA-Z0-9_.]+|https?://vm.tiktok.com/[a-zA-Z0-9]+/?)$","type":"string","example":"lilyachty"},"user_id":{"help":"Optionally you can get the profile information using the user_id parameter.","type":"string","validate":"^[0-9]+$"},"secUid":{"validate":"^(.*?){30,}$","help":"Optionally you can get the profile information using the secUid parameter.","type":"string","example":"MS4wLjABAAAAsHntXC3s0AvxcecggxsoVa4eAiT8OVafVZ4OQXxy-9htpnUi0sOYSr0kGGD1Loud"}},"$other":{"openapi":{"hide":True,"hideParams":["session_id"]}},"method":"GET"}, cls.__get_options__(), "Public.checkV3")(username=username, user_id=user_id, secUid=secUid, country=country, session_id=session_id, **otherParams)
|
|
474
|
+
|
|
467
475
|
@classmethod
|
|
468
476
|
def posts(cls, secUid: str = None, count: int = Default(30), cursor: str = None, user_id: str = None, country: str = None, session_id: int = None, **otherParams) -> APIResponse:
|
|
469
477
|
'''
|
|
@@ -606,7 +614,7 @@ def Rests(options: dict):
|
|
|
606
614
|
Discover users, music, hashtags
|
|
607
615
|
'''
|
|
608
616
|
count = None if count is cls.discover.__defaults__[1] else count
|
|
609
|
-
return wrap({"help":"Discover users, music, hashtags","comment":"Get popular users, music or hashtag. You can also include *Account Key* to show personalized results for the user.","path":"/public/discover/{category}","params":{"category":{"help":"The discover category","example":"users","in":["users","music","hashtag"],"location":"path","type":"string","required":True},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"offset":{"help":"The starting offset of items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{"hideParams":["session_id"]}},"method":"GET"}, cls.__get_options__(), "Public.discover")(category=category, count=count, offset=offset, country=country, session_id=session_id, **otherParams)
|
|
617
|
+
return wrap({"help":"Discover users, music, hashtags","comment":"Get popular users, music or hashtag. You can also include *Account Key* to show personalized results for the user.","path":"/public/discover/{category}","params":{"category":{"help":"The discover category","example":"users","in":["users","music","hashtag"],"location":"path","type":"string","required":True},"count":{"example":30,"default":30,"max":30,"type":"number","help":"Maximum amount of items for one request","validate":"^[0-9]{1,2}$"},"offset":{"help":"The starting offset of items list. Returned in every response, should be included in the next request for iteration.<br><br> *(A simple iteration method is already implemented in the Javascript & Python libraries as seen in the request samples)*","type":"number","validate":"^[0-9]+$"}},"$other":{"openapi":{"fields":{"deprecated":True},"hideParams":["session_id"]}},"method":"GET"}, cls.__get_options__(), "Public.discover")(category=category, count=count, offset=offset, country=country, session_id=session_id, **otherParams)
|
|
610
618
|
|
|
611
619
|
@classmethod
|
|
612
620
|
def discoverKeyword(cls, keyword: str = None, country: str = None, session_id: int = None, **otherParams) -> APIResponse:
|
|
@@ -614,7 +622,7 @@ def Rests(options: dict):
|
|
|
614
622
|
Discover by keyword
|
|
615
623
|
'''
|
|
616
624
|
|
|
617
|
-
return wrap({"help":"Discover by keyword","comment":"Get popular posts, users, music or hashtags from a keyword. <br><br>Limited to only a few items. If you want more, try using the <a href='#tag/Public/operation/public.search'>Search</a> endpoint instead.","path":"/public/discover/keyword","params":{"keyword":{"required":True,"example":"lilyachty","type":"string"}},"$other":{"openapi":{"hideParams":["session_id"]}},"method":"GET"}, cls.__get_options__(), "Public.discoverKeyword")(keyword=keyword, country=country, session_id=session_id, **otherParams)
|
|
625
|
+
return wrap({"help":"Discover by keyword","comment":"Get popular posts, users, music or hashtags from a keyword. <br><br>Limited to only a few items. If you want more, try using the <a href='#tag/Public/operation/public.search'>Search</a> endpoint instead.","path":"/public/discover/keyword","params":{"keyword":{"required":True,"example":"lilyachty","type":"string"}},"$other":{"openapi":{"fields":{"deprecated":True},"hideParams":["session_id"]}},"method":"GET"}, cls.__get_options__(), "Public.discoverKeyword")(keyword=keyword, country=country, session_id=session_id, **otherParams)
|
|
618
626
|
|
|
619
627
|
@classmethod
|
|
620
628
|
def search(cls, category: str = None, query: str = None, session_id: int = None, nextCursor: str = None, country: str = None, **otherParams) -> APIResponse:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|