Prepare release, part 2

This commit is contained in:
Lorenz Diener 2017-12-15 20:26:25 +01:00
parent 64d59fed3d
commit f55ff45393
2 changed files with 7 additions and 1 deletions

View File

@ -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:

View File

@ -254,6 +254,12 @@ class Mastodon:
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']):
"""Returns the url that a client needs to request the grant from the server.