Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 61d7d34

Browse files
1.0.10
1 parent ef72b4f commit 61d7d34

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

‎rocketapi/instagramapi.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,17 @@ def get_media_id_by_shortcode(self, shortcode):
367367
"instagram/media/get_id_by_shortcode", {"shortcode": shortcode}
368368
)
369369

370+
def get_media_id_by_share(self, share):
371+
"""
372+
Get media id by share code (for links like https://www.instagram.com/share/XXXxx356, where XXXxx356 is the share code).
373+
374+
Args:
375+
share (str): Share code
376+
377+
For more information, see documentation: https://docs.rocketapi.io/api/instagram/media/get_id_by_share
378+
"""
379+
return self.request("instagram/media/get_id_by_share", {"share": share})
380+
370381
def get_guide_info(self, guide_id):
371382
"""
372383
Retrieve guide information by guide id.

‎rocketapi/rocketapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def __init__(self, token, max_timeout=30):
1111
For more information, see documentation: https://docs.rocketapi.io/api/
1212
"""
1313
self.base_url = "https://v1.rocketapi.io/"
14-
self.version = "1.0.9"
14+
self.version = "1.0.10"
1515
self.token = token
1616
self.max_timeout = max_timeout
1717

‎setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
setuptools.setup(
55
name="rocketapi",
6-
version="1.0.9",
6+
version="1.0.10",
77
author="RocketAPI",
88
author_email="developer@rocketapi.io",
99
description="RocketAPI Python SDK",
1010
packages=["rocketapi"],
1111
url="https://github.com/rocketapi-io/rocketapi-python",
12-
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.9.tar.gz",
12+
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.10.tar.gz",
1313
install_requires=["requests"],
1414
)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /