Fixed follows docs
This commit is contained in:
pare
d25e337c19
commit
23e796bab4
S'han modificat 3 arxius amb 11 adicions i 12 eliminacions
|
@ -13,7 +13,6 @@ Here's some general stuff to keep in mind, and some work that needs to be done
|
||||||
* Documentation that needs to be updated:
|
* Documentation that needs to be updated:
|
||||||
* Toot dicts are missing some fields (cards, applications, visibility)
|
* Toot dicts are missing some fields (cards, applications, visibility)
|
||||||
* Some others probably are missing stuff also
|
* Some others probably are missing stuff also
|
||||||
* Follows is missclassified
|
|
||||||
|
|
||||||
* Other things missing:
|
* Other things missing:
|
||||||
* Transparent as well as explicit pagination support
|
* Transparent as well as explicit pagination support
|
||||||
|
|
|
@ -238,7 +238,6 @@ their relationships.
|
||||||
.. automethod:: Mastodon.account_statuses
|
.. automethod:: Mastodon.account_statuses
|
||||||
.. automethod:: Mastodon.account_following
|
.. automethod:: Mastodon.account_following
|
||||||
.. automethod:: Mastodon.account_followers
|
.. automethod:: Mastodon.account_followers
|
||||||
.. automethod:: Mastodon.follows
|
|
||||||
.. automethod:: Mastodon.account_relationships
|
.. automethod:: Mastodon.account_relationships
|
||||||
.. automethod:: Mastodon.account_search
|
.. automethod:: Mastodon.account_search
|
||||||
|
|
||||||
|
@ -289,7 +288,8 @@ Writing data: Accounts
|
||||||
These functions allow you to interact with other accounts: To (un)follow and
|
These functions allow you to interact with other accounts: To (un)follow and
|
||||||
(un)block.
|
(un)block.
|
||||||
|
|
||||||
.. automethod:: Mastodon.account_follow
|
.. automethod:: Mastodon.account_follow
|
||||||
|
.. automethod:: Mastodon.follows
|
||||||
.. automethod:: Mastodon.account_unfollow
|
.. automethod:: Mastodon.account_unfollow
|
||||||
.. automethod:: Mastodon.account_block
|
.. automethod:: Mastodon.account_block
|
||||||
.. automethod:: Mastodon.account_unblock
|
.. automethod:: Mastodon.account_unblock
|
||||||
|
|
|
@ -364,15 +364,6 @@ class Mastodon:
|
||||||
params = self.__generate_params(locals(), ['id'])
|
params = self.__generate_params(locals(), ['id'])
|
||||||
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers', params)
|
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers', params)
|
||||||
|
|
||||||
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
|
||||||
|
@ -571,6 +562,15 @@ class Mastodon:
|
||||||
"""
|
"""
|
||||||
return self.__api_request('POST', '/api/v1/accounts/' + str(id) + "/follow")
|
return self.__api_request('POST', '/api/v1/accounts/' + str(id) + "/follow")
|
||||||
|
|
||||||
|
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_unfollow(self, id):
|
def account_unfollow(self, id):
|
||||||
"""
|
"""
|
||||||
Unfollow a user.
|
Unfollow a user.
|
||||||
|
|
Loading…
Referencia en una nova incidència