From c06baa13b30fc5ce058940e681305f6c03dc0048 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Wed, 13 Dec 2017 17:11:45 +0100 Subject: Update verify_credentials docs --- docs/index.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'docs') 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 -- cgit v1.2.3