Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae3f91c

Browse files
1.0.4
1 parent 508845e commit ae3f91c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

‎rocketapi/instagramapi.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,24 @@ def get_comment_likes(self, comment_id, max_id=None):
457457
payload["max_id"] = max_id
458458
return self.request("instagram/comment/get_likes", payload)
459459

460+
def get_comment_replies(self, comment_id, media_id, max_id=None):
461+
"""
462+
Retrieve comment replies by comment id and media id.
463+
464+
Args:
465+
comment_id (int): Comment id
466+
media_id (int): Media id
467+
max_id (str): Use for pagination
468+
469+
You can use the `max_id` parameter to paginate through replies (take from the `next_max_child_cursor` field of the response).
470+
471+
For more information, see documentation: https://docs.rocketapi.io/api/instagram/comment/get_replies
472+
"""
473+
payload = {"id": comment_id, "media_id": media_id}
474+
if max_id is not None:
475+
payload["max_id"] = max_id
476+
return self.request("instagram/comment/get_replies", payload)
477+
460478
def get_audio_media(self, audio_id, max_id=None):
461479
"""
462480
Retrieve audio media by audio id.

‎setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
setuptools.setup(
55
name="rocketapi",
6-
version="1.0.3",
6+
version="1.0.4",
77
author="RocketAPI",
88
author_email="developer@rocketapi.io",
99
description="RocketAPI Python SDK",
1010
packages=["rocketapi"],
1111
url="https://github.com/rocketapi-io/rocketapi-python",
12-
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.3.tar.gz",
12+
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.4.tar.gz",
1313
install_requires=["requests"],
1414
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /