From 84f8caa9a22cf10dc0640fc6632816f2d83630f4 Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Thu, 6 Apr 2017 00:42:01 +0200 Subject: [PATCH] [doc] point to account_search to get user id from address --- mastodon/Mastodon.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 9967bdb..aa5ccbe 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -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())