From 4c502a4c05a672722906285c92752daaae1c82fb Mon Sep 17 00:00:00 2001 From: RocketAPI Date: Fri, 13 Oct 2023 21:14:29 +0300 Subject: [PATCH] 1.0.6 --- rocketapi/instagramapi.py | 5 +++-- setup.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/rocketapi/instagramapi.py b/rocketapi/instagramapi.py index cf8b55d..272c9e4 100644 --- a/rocketapi/instagramapi.py +++ b/rocketapi/instagramapi.py @@ -88,19 +88,20 @@ def get_user_media(self, user_id, count=12, max_id=None): payload["max_id"] = max_id return self.request("instagram/user/get_media", payload) - def get_user_clips(self, user_id, max_id=None): + def get_user_clips(self, user_id, count=12, max_id=None): """ Retrieve user clips (videos from "Reels" section) by id. Args: user_id (int): User id + count (int): Number of media to retrieve (max: 50) max_id (str): Use for pagination You can use the `max_id` parameter to paginate through the media (take from the `max_id` (!) field of the response). For more information, see documentation: https://docs.rocketapi.io/api/instagram/user/get_clips """ - payload = {"id": user_id} + payload = {"id": user_id, "count": count} if max_id is not None: payload["max_id"] = max_id return self.request("instagram/user/get_clips", payload) diff --git a/setup.py b/setup.py index 29a2abe..e66fc63 100644 --- a/setup.py +++ b/setup.py @@ -3,12 +3,12 @@ setuptools.setup( name="rocketapi", - version="1.0.5", + version="1.0.6", 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.5.tar.gz", + download_url="https://github.com/rocketapi-io/rocketapi-python/archive/refs/tags/v1.0.6.tar.gz", install_requires=["requests"], )