aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz Diener <[email protected]>2017-04-26 13:24:27 +0200
committerLorenz Diener <[email protected]>2017-04-26 13:24:27 +0200
commit23e796bab4e19348d77a94cbcd27cd3539838cc5 (patch)
tree36916e37149527e4946af112e768f91682ee916b /mastodon
parentd25e337c19b0f87027a88b51becd79c83c9667e5 (diff)
downloadmastodon.py-23e796bab4e19348d77a94cbcd27cd3539838cc5.tar.gz
Fixed follows docs
Diffstat (limited to 'mastodon')
-rw-r--r--mastodon/Mastodon.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 4717674..68f9e56 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -364,15 +364,6 @@ class Mastodon:
364 params = self.__generate_params(locals(), ['id']) 364 params = self.__generate_params(locals(), ['id'])
365 return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers', params) 365 return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers', params)
366 366
367 def follows(self, uri):
368 """
369 Follow a remote user by uri (username@domain).
370
371 Returns a user dict.
372 """
373 params = self.__generate_params(locals())
374 return self.__api_request('POST', '/api/v1/follows', params)
375
376 def account_relationships(self, id): 367 def account_relationships(self, id):
377 """ 368 """
378 Fetch relationships (following, followed_by, blocking) of the logged in user to 369 Fetch relationships (following, followed_by, blocking) of the logged in user to
@@ -571,6 +562,15 @@ class Mastodon:
571 """ 562 """
572 return self.__api_request('POST', '/api/v1/accounts/' + str(id) + "/follow") 563 return self.__api_request('POST', '/api/v1/accounts/' + str(id) + "/follow")
573 564
565 def follows(self, uri):
566 """
567 Follow a remote user by uri (username@domain).
568
569 Returns a user dict.
570 """
571 params = self.__generate_params(locals())
572 return self.__api_request('POST', '/api/v1/follows', params)
573
574 def account_unfollow(self, id): 574 def account_unfollow(self, id):
575 """ 575 """
576 Unfollow a user. 576 Unfollow a user.
Powered by cgit v1.2.3 (git 2.41.0)