Merge pull request #46 from naoyat/add_remote_follow
Added remote follow support, resolves issue #40
This commit is contained in:
commit
6d4cc61682
S'han modificat 1 arxius amb 9 adicions i 0 eliminacions
|
@ -380,6 +380,15 @@ class Mastodon:
|
||||||
"""
|
"""
|
||||||
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers')
|
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers')
|
||||||
|
|
||||||
|
def follows(self, uri):
|
||||||
|
"""
|
||||||
|
Follow a remote user by uri (username@domain).
|
||||||
|
|
||||||
|
Returns a user dict.
|
||||||
|
"""
|
||||||
|
params = self.__generate_params(locals())
|
||||||
|
return self.__api_request('POST', '/api/v1/follows', params)
|
||||||
|
|
||||||
def account_relationships(self, id):
|
def account_relationships(self, id):
|
||||||
"""
|
"""
|
||||||
Fetch relationships (following, followed_by, blocking) of the logged in user to
|
Fetch relationships (following, followed_by, blocking) of the logged in user to
|
||||||
|
|
Loading…
Referencia en una nova incidència