Skip to content

Commit c546137

Browse files
committed
Upgraded SDK V1.11.6 Add Support for New Instagram API
1 parent 883f118 commit c546137

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

dist/tikhub-1.11.6-py3-none-any.whl

63.1 KB
Binary file not shown.

dist/tikhub-1.11.6.tar.gz

42.4 KB
Binary file not shown.

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
setup(
1515
name="tikhub",
16-
version="1.11.5",
16+
version="1.11.6",
1717
author="TikHub.io",
1818
author_email="tikhub.io@proton.me",
1919
description="A Python SDK for TikHub RESTful API",

tikhub/api/v1/endpoints/instagram/web/instagram_web.py

+6
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,12 @@ async def fetch_user_highlights_by_username(self, username: str):
167167
data = await self.client.fetch_get_json(f"{endpoint}?username={username}")
168168
return data
169169

170+
# 根据highlights ID获取highlights数据 | Get highlights data by highlights ID
171+
async def fetch_highlights_by_highlights_id(self, highlight_id: str):
172+
endpoint = "/api/v1/instagram/web_app/fetch_highlights_by_highlight_id"
173+
data = await self.client.fetch_get_json(f"{endpoint}?highlight_id={highlight_id}")
174+
return data
175+
170176
# 根据用户名获取用户的tv_posts数据 | Get user tv_posts by username
171177
async def fetch_user_tv_posts_by_username(self, username: str, pagination_token: str = None):
172178
endpoint = "/api/v1/instagram/web_app/fetch_user_tv_posts_by_username"

0 commit comments

Comments
 (0)