diff options
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | mastodon/Mastodon.py | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -35,7 +35,7 @@ Mastodon.py | |||
35 | mastodon.toot('Tooting from python using #mastodonpy !') | 35 | mastodon.toot('Tooting from python using #mastodonpy !') |
36 | 36 | ||
37 | Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. | 37 | Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. |
38 | Feature complete for public API as of Mastodon version 2.0.0 and easy to get started with. | 38 | Feature complete for public API as of Mastodon version 2.1.0 and easy to get started with. |
39 | 39 | ||
40 | You can install Mastodon.py via pypi: | 40 | You can install Mastodon.py via pypi: |
41 | 41 | ||
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index 4500583..5080b2e 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py | |||
@@ -253,6 +253,12 @@ class Mastodon: | |||
253 | elif major == self.mastodon_major and minor == self.mastodon_minor and patch > self.mastodon_patch: | 253 | elif major == self.mastodon_major and minor == self.mastodon_minor and patch > self.mastodon_patch: |
254 | return False | 254 | return False |
255 | return True | 255 | return True |
256 | |||
257 | def get_supported_version(self): | ||
258 | """ | ||
259 | Retrieve the maximum version of Mastodon supported by this version of Mastodon.py | ||
260 | """ | ||
261 | return __SUPPORTED_MASTODON_VERSION | ||
256 | 262 | ||
257 | def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", | 263 | def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob", |
258 | scopes=['read', 'write', 'follow']): | 264 | scopes=['read', 'write', 'follow']): |