Skip to content

Commit 4c502a4

Browse files
committed
1.0.6
1 parent 9c5fd96 commit 4c502a4

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

rocketapi/instagramapi.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,20 @@ def get_user_media(self, user_id, count=12, max_id=None):
8888
payload["max_id"] = max_id
8989
return self.request("instagram/user/get_media", payload)
9090

91-
def get_user_clips(self, user_id, max_id=None):
91+
def get_user_clips(self, user_id, count=12, max_id=None):
9292
"""
9393
Retrieve user clips (videos from "Reels" section) by id.
9494
9595
Args:
9696
user_id (int): User id
97+
count (int): Number of media to retrieve (max: 50)
9798
max_id (str): Use for pagination
9899
99100
You can use the `max_id` parameter to paginate through the media (take from the `max_id` (!) field of the response).
100101
101102
For more information, see documentation: https://docs.rocketapi.io/api/instagram/user/get_clips
102103
"""
103-
payload = {"id": user_id}
104+
payload = {"id": user_id, "count": count}
104105
if max_id is not None:
105106
payload["max_id"] = max_id
106107
return self.request("instagram/user/get_clips", payload)

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44
setuptools.setup(
55
name="rocketapi",
6-
version="1.0.5",
6+
version="1.0.6",
77
author="RocketAPI",
88
author_email="[email protected]",
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.5.tar.gz",
12+
download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.6.tar.gz",
1313
install_requires=["requests"],
1414
)

0 commit comments

Comments
 (0)