From ae3f91c38f5aa8a16419011fddb6f7cd1aa49dfd Mon Sep 17 00:00:00 2001 From: RocketAPI Date: Thu, 25 May 2023 01:18:52 +0300 Subject: [PATCH] 1.0.4 --- rocketapi/instagramapi.py | 18 ++++++++++++++++++ setup.py | 4 ++-- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/rocketapi/instagramapi.py b/rocketapi/instagramapi.py index cf7ca2e..d141bfa 100644 --- a/rocketapi/instagramapi.py +++ b/rocketapi/instagramapi.py @@ -457,6 +457,24 @@ def get_comment_likes(self, comment_id, max_id=None): payload["max_id"] = max_id return self.request("instagram/comment/get_likes", payload) + def get_comment_replies(self, comment_id, media_id, max_id=None): + """ + Retrieve comment replies by comment id and media id. + + Args: + comment_id (int): Comment id + media_id (int): Media id + max_id (str): Use for pagination + + You can use the `max_id` parameter to paginate through replies (take from the `next_max_child_cursor` field of the response). + + For more information, see documentation: https://docs.rocketapi.io/api/instagram/comment/get_replies + """ + payload = {"id": comment_id, "media_id": media_id} + if max_id is not None: + payload["max_id"] = max_id + return self.request("instagram/comment/get_replies", payload) + def get_audio_media(self, audio_id, max_id=None): """ Retrieve audio media by audio id. diff --git a/setup.py b/setup.py index 0077216..4063754 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ setuptools.setup( name="rocketapi", - version="1.0.3", + version="1.0.4", author="RocketAPI", author_email="developer@rocketapi.io", description="RocketAPI Python SDK", packages=["rocketapi"], url="https://github.com/rocketapi-io/rocketapi-python", - download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.3.tar.gz", + download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.4.tar.gz", install_requires=["requests"], )