Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketapi-io committed May 24, 2023
1 parent 508845e commit ae3f91c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions rocketapi/instagramapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

0 comments on commit ae3f91c

Please sign in to comment.