[doc] point to account_search to get user id from address

This commit is contained in:
Laurent Peuch 2017-04-06 00:42:01 +02:00
pare 853ae97dcc
commit 84f8caa9a2

Veure arxiu

@ -276,6 +276,8 @@ class Mastodon:
""" """
Fetch account information by user id. 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. Returns a user dict.
""" """
return self.__api_request('GET', '/api/v1/accounts/' + str(id)) 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. 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. Returns a list of toot dicts.
""" """
params = self.__generate_params(locals(), ['id']) params = self.__generate_params(locals(), ['id'])
@ -301,6 +305,8 @@ class Mastodon:
""" """
Fetch users the given user is following. 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. Returns a list of user dicts.
""" """
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/following') 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. 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. Returns a list of user dicts.
""" """
return self.__api_request('GET', '/api/v1/accounts/' + str(id) + '/followers') 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 Fetch relationships (following, followed_by, blocking) of the logged in user to
a given account. id can be a list. 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. Returns a list of relationship dicts.
""" """
params = self.__generate_params(locals()) params = self.__generate_params(locals())