diff options
-rw-r--r-- | mastodon/Mastodon.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 8456f9e..03a475e 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -382,6 +382,15 @@ class Mastodon: | |||
382 | params = self.__generate_params(locals(), ['id']) | 382 | params = self.__generate_params(locals(), ['id']) |
383 | return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers', params) | 383 | return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers', params) |
384 | 384 | ||
385 | def follows(self, uri): | ||
386 | """ | ||
387 | Follow a remote user by uri (username@domain). | ||
388 | |||
389 | Returns a user dict. | ||
390 | """ | ||
391 | params = self.__generate_params(locals()) | ||
392 | return self.__api_request('POST', '/api/v1/follows', params) | ||
393 | |||
385 | def account_relationships(self, id): | 394 | def account_relationships(self, id): |
386 | """ | 395 | """ |
387 | Fetch relationships (following, followed_by, blocking) of the logged in user to | 396 | Fetch relationships (following, followed_by, blocking) of the logged in user to |