Skip to content

Commit 3fb26b0

Browse files
committed
1.0.13
1 parent 2188d76 commit 3fb26b0

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

rocketapi/instagramapi.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,21 @@ def get_user_info(self, username):
8585
"""
8686
return self.get_web_profile_info(username)
8787

88+
def get_user_info_by_username(self, username):
89+
"""
90+
Retrieve user information by username.
91+
92+
Please note that the responses from `get_web_profile_info` and `get_user_info_by_username` methods are different.
93+
94+
Args:
95+
username (str): Username
96+
97+
For more information, see documentation: https://docs.rocketapi.io/api/instagram/user/get_info_by_username
98+
"""
99+
return self.request(
100+
"instagram/user/get_info_by_username", {"username": username}
101+
)
102+
88103
def get_user_info_by_id(self, user_id):
89104
"""
90105
Retrieve user information by 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.12"
14+
self.version = "1.0.13"
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.12",
6+
version="1.0.13",
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.12.tar.gz",
12+
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.13.tar.gz",
1313
install_requires=["requests"],
1414
)

0 commit comments

Comments
 (0)