aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.rst2
-rw-r--r--mastodon/Mastodon.py6
2 files changed, 7 insertions, 1 deletions
diff --git a/README.rst b/README.rst
index 77cc7b7..a8524dc 100644
--- a/README.rst
+++ b/README.rst
@@ -35,7 +35,7 @@ Mastodon.py
35 mastodon.toot('Tooting from python using #mastodonpy !') 35 mastodon.toot('Tooting from python using #mastodonpy !')
36 36
37Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API. 37Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API.
38Feature complete for public API as of Mastodon version 2.0.0 and easy to get started with. 38Feature complete for public API as of Mastodon version 2.1.0 and easy to get started with.
39 39
40You can install Mastodon.py via pypi: 40You 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']):
Powered by cgit v1.2.3 (git 2.41.0)