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())