Skip to content

Commit

Permalink
1.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketapi-io committed Nov 26, 2024
1 parent a139016 commit ef72b4f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
27 changes: 24 additions & 3 deletions rocketapi/instagramapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,19 @@ def get_media_likes(self, shortcode, count=12, max_id=None):
payload["max_id"] = max_id
return self.request("instagram/media/get_likes", payload)

def get_media_likes_by_id(self, media_id):
"""
Retrieve up to 1000 media likes by media id.
Args:
media_id (int): Media id
Pagination is not supported for this endpoint.
For more information, see documentation: https://docs.rocketapi.io/api/instagram/media/get_likes_by_id
"""
return self.request("instagram/media/get_likes_by_id", {"id": media_id})

def get_media_comments(self, media_id, can_support_threading=True, min_id=None):
"""
Retrieve media comments by media id.
Expand Down Expand Up @@ -521,13 +534,21 @@ def get_audio_media_by_canonical_id(self, audio_canonical_id, max_id=None):
payload["max_id"] = max_id
return self.request("instagram/audio/get_media_by_canonical_id", payload)

def get_live_info(self, broadcast_id):
"""
Retrieve live information by broadcast id.
Args:
broadcast_id (int): Broadcast id
For more information, see documentation: https://docs.rocketapi.io/api/instagram/live/get_info
"""
return self.request("instagram/live/get_info", {"id": broadcast_id})

def get_user_about(self, user_id):
"""
Obtain user details from «About this Account» section.
⭐️ This method is exclusively available to our Enterprise+ clients.
If you wish to enable it for your account, please get in touch with our support team: https://t.me/rocketapi
Args:
user_id (int): User id
Expand Down
2 changes: 1 addition & 1 deletion rocketapi/rocketapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def __init__(self, token, max_timeout=30):
For more information, see documentation: https://docs.rocketapi.io/api/
"""
self.base_url = "https://v1.rocketapi.io/"
self.version = "1.0.8"
self.version = "1.0.9"
self.token = token
self.max_timeout = max_timeout

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.8",
version="1.0.9",
author="RocketAPI",
author_email="[email protected]",
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.8.tar.gz",
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.9.tar.gz",
install_requires=["requests"],
)

0 comments on commit ef72b4f

Please sign in to comment.