diff --git a/README.rst b/README.rst index 8c2e5ce..f87bda0 100644 --- a/README.rst +++ b/README.rst @@ -402,6 +402,10 @@ API w wersji 2 posiada następujące wbudowane metody. +-------------------+--------------------------------+ | ? | unblock_profile | +-------------------+--------------------------------+ +| ? | get_followed | ++-------------------+--------------------------------+ +| ? | get_followers | ++-------------------+--------------------------------+ | **Search** | +-------------------+--------------------------------+ | ? | search_links | diff --git a/wykop/api/v2/clients.py b/wykop/api/v2/clients.py index ad1801a..df16a25 100644 --- a/wykop/api/v2/clients.py +++ b/wykop/api/v2/clients.py @@ -199,6 +199,20 @@ def get_link_downvoters(self, link_id): } return self.request('links', api_params=api_params) + def get_followed(self, username, page=1): + api_params = { + 'followed': username, + 'page': page + } + return self.request('profiles', api_params=api_params) + + def get_followers(self, username, page=1): + api_params = { + 'followers': username, + 'page': page + } + return self.request('profiles', api_params=api_params) + # mywykop @login_required