diff --git a/docs/index.rst b/docs/index.rst index dfd91ab..1d8f138 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -134,7 +134,7 @@ If you are only interested in the fact an error was raised somewhere in Mastodon.py, and not the details, this is the exception you can catch. `MastodonIllegalArgumentError` is generally a programming problem - you asked the -API to do something obviously invalid (i.e. specify a privacy scope that does +API to do something obviously invalid (i.e. specify a privacy option that does not exist). `MastodonFileNotFoundError` and `MastodonNetworkError` are IO errors - could be you @@ -176,8 +176,17 @@ User dicts 'header': # URL for their header image, can be animated 'avatar_static': # URL for their avatar, never animated 'header_static': # URL for their header image, never animated + 'source': # Additional information - only present for user dict returned from account_verify_credentials() } + mastodon.account_verify_credentials()["source"] + # Returns the following dictionary: + { + 'privacy': # The users default visibility setting ("private", "unlisted" or "public") + 'sensitive': # Denotes whether user media should be marked sensitive by default + 'note': # Plain text version of the users bio + } + Toot dicts ~~~~~~~~~~ .. code-block:: python diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 641b742..1c7b2ee 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -510,7 +510,7 @@ class Mastodon: """ Fetch authenticated user's account information. - Returns a user dict. + Returns a user dict (Starting from 2.1.0, with an additional "source" field). """ return self.__api_request('GET', '/api/v1/accounts/verify_credentials')