Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
#15 Get Followers
Browse files Browse the repository at this point in the history
  • Loading branch information
uilianries committed Jul 14, 2019
1 parent f75f7b8 commit 1c30bef
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions bintray/bintray.py
Original file line number Diff line number Diff line change
Expand Up @@ -1339,8 +1339,24 @@ def get_organization(self, organization):
self._logger.info("Get successfully")
return response

def get_followers(self):
pass
def get_followers(self, user, start_pos=None):
""" Get followers of the specified repository owner
Security: Authenticated user is required
:param user: user name to be searched
:param start_pos: initial index position
:return: follower list
"""
url = "{}/users/{}/followers".format(Bintray.BINTRAY_URL, user)
params = None

if isinstance(start_pos, int):
params = {"start_pos": start_pos}

response = self._requester.get(url, params=params)
self._logger.info("Get successfully")
return response

def user_search(self):
pass
pass

0 comments on commit 1c30bef

Please sign in to comment.