Skip to content

Commit

Permalink
1.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketapi-io committed Dec 11, 2024
1 parent ef72b4f commit 61d7d34
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions rocketapi/instagramapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,17 @@ def get_media_id_by_shortcode(self, shortcode):
"instagram/media/get_id_by_shortcode", {"shortcode": shortcode}
)

def get_media_id_by_share(self, share):
"""
Get media id by share code (for links like https://www.instagram.com/share/XXXxx356, where XXXxx356 is the share code).
Args:
share (str): Share code
For more information, see documentation: https://docs.rocketapi.io/api/instagram/media/get_id_by_share
"""
return self.request("instagram/media/get_id_by_share", {"share": share})

def get_guide_info(self, guide_id):
"""
Retrieve guide information by guide 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.9"
self.version = "1.0.10"
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.9",
version="1.0.10",
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.9.tar.gz",
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.10.tar.gz",
install_requires=["requests"],
)

0 comments on commit 61d7d34

Please sign in to comment.