From 15b32257faa2b96eb5190eb99a902afd5e41d01e Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Mon, 11 Dec 2017 14:41:15 +0100 Subject: Document versioning --- docs/index.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/index.rst b/docs/index.rst index fa021d2..1813f2b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -369,6 +369,17 @@ is specified, Mastodon.py defaults to https. .. automethod:: Mastodon.log_in .. automethod:: Mastodon.auth_request_url +Versioning +---------- +Mastodon.py will check if a certain endpoint is available before doing API +calls. By default, it checks against the version of Mastodon retrieved on +init(), or the version you specified. With these functions, you can make +Mastodon.py re-check the server version or explicitly determine if a +specific minimum Version is available. + +.. automethod:: Mastodon.retrieve_mastodon_version +.. automethod:: Mastodon.verify_minimum_version + Reading data: Instances ----------------------- This function allows you to fetch information associated with the -- cgit v1.2.3