Prepare release, part 2

pull/118/head
Lorenz Diener 2017-12-15 20:26:25 +01:00
rodzic 64d59fed3d
commit f55ff45393
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -35,7 +35,7 @@ Mastodon.py
mastodon.toot('Tooting from python using #mastodonpy !')
Python wrapper for the Mastodon ( https://github.com/tootsuite/mastodon/ ) API.
Feature complete for public API as of Mastodon version 2.0.0 and easy to get started with.
Feature complete for public API as of Mastodon version 2.1.0 and easy to get started with.
You can install Mastodon.py via pypi:

Wyświetl plik

@ -253,6 +253,12 @@ class Mastodon:
elif major == self.mastodon_major and minor == self.mastodon_minor and patch > self.mastodon_patch:
return False
return True
def get_supported_version(self):
"""
Retrieve the maximum version of Mastodon supported by this version of Mastodon.py
"""
return __SUPPORTED_MASTODON_VERSION
def auth_request_url(self, client_id=None, redirect_uris="urn:ietf:wg:oauth:2.0:oob",
scopes=['read', 'write', 'follow']):