From 61d7d342dd74f00022f59ec66b2a3f8579d20181 Mon Sep 17 00:00:00 2001 From: RocketAPI Date: Wed, 11 Dec 2024 19:57:42 +0300 Subject: [PATCH] 1.0.10 --- rocketapi/instagramapi.py | 11 +++++++++++ rocketapi/rocketapi.py | 2 +- setup.py | 4 ++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/rocketapi/instagramapi.py b/rocketapi/instagramapi.py index ef2689d..d482b99 100644 --- a/rocketapi/instagramapi.py +++ b/rocketapi/instagramapi.py @@ -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. diff --git a/rocketapi/rocketapi.py b/rocketapi/rocketapi.py index 6fcafd9..68ac816 100644 --- a/rocketapi/rocketapi.py +++ b/rocketapi/rocketapi.py @@ -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 diff --git a/setup.py b/setup.py index 04b9e9b..fc632d1 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ setuptools.setup( name="rocketapi", - version="1.0.9", + version="1.0.10", 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.9.tar.gz", + download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.10.tar.gz", install_requires=["requests"], )