diff options
author | Lorenz Diener <[email protected]> | 2017-12-11 14:41:15 +0100 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2017-12-11 14:41:15 +0100 |
commit | 15b32257faa2b96eb5190eb99a902afd5e41d01e (patch) | |
tree | 7dd62589dc56211ac1f93a03d8c85638c942ab4f | |
parent | fad615b8d6abb5b6c7a7576483650bd9bf341897 (diff) | |
download | mastodon.py-15b32257faa2b96eb5190eb99a902afd5e41d01e.tar.gz |
Document versioning
-rw-r--r-- | docs/index.rst | 11 |
1 files changed, 11 insertions, 0 deletions
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. | |||
369 | .. automethod:: Mastodon.log_in | 369 | .. automethod:: Mastodon.log_in |
370 | .. automethod:: Mastodon.auth_request_url | 370 | .. automethod:: Mastodon.auth_request_url |
371 | 371 | ||
372 | Versioning | ||
373 | ---------- | ||
374 | Mastodon.py will check if a certain endpoint is available before doing API | ||
375 | calls. By default, it checks against the version of Mastodon retrieved on | ||
376 | init(), or the version you specified. With these functions, you can make | ||
377 | Mastodon.py re-check the server version or explicitly determine if a | ||
378 | specific minimum Version is available. | ||
379 | |||
380 | .. automethod:: Mastodon.retrieve_mastodon_version | ||
381 | .. automethod:: Mastodon.verify_minimum_version | ||
382 | |||
372 | Reading data: Instances | 383 | Reading data: Instances |
373 | ----------------------- | 384 | ----------------------- |
374 | This function allows you to fetch information associated with the | 385 | This function allows you to fetch information associated with the |