Skip to content

Commit

Permalink
1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
rocketapi-io committed Oct 13, 2023
1 parent 9c5fd96 commit 4c502a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions rocketapi/instagramapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
)

0 comments on commit 4c502a4

Please sign in to comment.