[doc] point to account_search to get user id from address
This commit is contained in:
pare
853ae97dcc
commit
84f8caa9a2
S'han modificat 1 arxius amb 10 adicions i 0 eliminacions
|
@ -276,6 +276,8 @@ class Mastodon:
|
|||
"""
|
||||
Fetch account information by user id.
|
||||
|
||||
To retreive a user id from it's address (user@instance.com), uses the account_search method.
|
||||
|
||||
Returns a user dict.
|
||||
"""
|
||||
return self.__api_request('GET', '/api/v1/accounts/' + str(id))
|
||||
|
@ -292,6 +294,8 @@ class Mastodon:
|
|||
"""
|
||||
Fetch statuses by user id. Same options as timeline are permitted.
|
||||
|
||||
To retreive a user id from it's address (user@instance.com), uses the account_search method.
|
||||
|
||||
Returns a list of toot dicts.
|
||||
"""
|
||||
params = self.__generate_params(locals(), ['id'])
|
||||
|
@ -301,6 +305,8 @@ class Mastodon:
|
|||
"""
|
||||
Fetch users the given user is following.
|
||||
|
||||
To retreive a user id from it's address (user@instance.com), uses the account_search method.
|
||||
|
||||
Returns a list of user dicts.
|
||||
"""
|
||||
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/following')
|
||||
|
@ -309,6 +315,8 @@ class Mastodon:
|
|||
"""
|
||||
Fetch users the given user is followed by.
|
||||
|
||||
To retreive a user id from it's address (user@instance.com), uses the account_search method.
|
||||
|
||||
Returns a list of user dicts.
|
||||
"""
|
||||
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers')
|
||||
|
@ -318,6 +326,8 @@ class Mastodon:
|
|||
Fetch relationships (following, followed_by, blocking) of the logged in user to
|
||||
a given account. id can be a list.
|
||||
|
||||
To retreive a user id from it's address (user@instance.com), uses the account_search method.
|
||||
|
||||
Returns a list of relationship dicts.
|
||||
"""
|
||||
params = self.__generate_params(locals())
|
||||
|
|
Loading…
Referencia en una nova incidència