aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mastodon/Mastodon.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py
index 7ddc7a3..dca6d67 100644
--- a/mastodon/Mastodon.py
+++ b/mastodon/Mastodon.py
@@ -183,13 +183,13 @@ class Mastodon:
183 __VALID_SCOPES = ['read', 'write', 'follow', 'push', 'admin:read', 'admin:write'] + \ 183 __VALID_SCOPES = ['read', 'write', 'follow', 'push', 'admin:read', 'admin:write'] + \
184 __SCOPE_SETS['read'] + __SCOPE_SETS['write'] + __SCOPE_SETS['admin:read'] + __SCOPE_SETS['admin:write'] 184 __SCOPE_SETS['read'] + __SCOPE_SETS['write'] + __SCOPE_SETS['admin:read'] + __SCOPE_SETS['admin:write']
185 185
186 __SUPPORTED_MASTODON_VERSION = "3.0.1" 186 __SUPPORTED_MASTODON_VERSION = "3.1.1"
187 187
188 # Dict versions 188 # Dict versions
189 __DICT_VERSION_APPLICATION = "2.7.2" 189 __DICT_VERSION_APPLICATION = "2.7.2"
190 __DICT_VERSION_MENTION = "1.0.0" 190 __DICT_VERSION_MENTION = "1.0.0"
191 __DICT_VERSION_MEDIA = "2.8.2" 191 __DICT_VERSION_MEDIA = "2.8.2"
192 __DICT_VERSION_ACCOUNT = "2.4.0" 192 __DICT_VERSION_ACCOUNT = "3.1.0"
193 __DICT_VERSION_POLL = "2.8.0" 193 __DICT_VERSION_POLL = "2.8.0"
194 __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version(bigger_version("2.9.1", 194 __DICT_VERSION_STATUS = bigger_version(bigger_version(bigger_version(bigger_version(bigger_version("2.9.1",
195 __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION), __DICT_VERSION_POLL) 195 __DICT_VERSION_MEDIA), __DICT_VERSION_ACCOUNT), __DICT_VERSION_APPLICATION), __DICT_VERSION_MENTION), __DICT_VERSION_POLL)
@@ -211,7 +211,7 @@ class Mastodon:
211 __DICT_VERSION_CONVERSATION = bigger_version(bigger_version("2.6.0", __DICT_VERSION_ACCOUNT), __DICT_VERSION_STATUS) 211 __DICT_VERSION_CONVERSATION = bigger_version(bigger_version("2.6.0", __DICT_VERSION_ACCOUNT), __DICT_VERSION_STATUS)
212 __DICT_VERSION_SCHEDULED_STATUS = bigger_version("2.7.0", __DICT_VERSION_STATUS) 212 __DICT_VERSION_SCHEDULED_STATUS = bigger_version("2.7.0", __DICT_VERSION_STATUS)
213 __DICT_VERSION_PREFERENCES = "2.8.0" 213 __DICT_VERSION_PREFERENCES = "2.8.0"
214 __DICT_VERSION_ADMIN_ACCOUNT = "2.9.1" 214 __DICT_VERSION_ADMIN_ACCOUNT = bigger_version("2.9.1", __DICT_VERSION_ACCOUNT)
215 __DICT_VERSION_FEATURED_TAG = "3.0.0" 215 __DICT_VERSION_FEATURED_TAG = "3.0.0"
216 __DICT_VERSION_MARKER = "3.0.0" 216 __DICT_VERSION_MARKER = "3.0.0"
217 217
@@ -2103,7 +2103,7 @@ class Mastodon:
2103 url = '/api/v1/accounts/{0}/unmute'.format(str(id)) 2103 url = '/api/v1/accounts/{0}/unmute'.format(str(id))
2104 return self.__api_request('POST', url) 2104 return self.__api_request('POST', url)
2105 2105
2106 @api_version("1.1.1", "2.4.0", __DICT_VERSION_ACCOUNT) 2106 @api_version("1.1.1", "3.1.0", __DICT_VERSION_ACCOUNT)
2107 def account_update_credentials(self, display_name=None, note=None, 2107 def account_update_credentials(self, display_name=None, note=None,
2108 avatar=None, avatar_mime_type=None, 2108 avatar=None, avatar_mime_type=None,
2109 header=None, header_mime_type=None, 2109 header=None, header_mime_type=None,
@@ -2112,16 +2112,18 @@ class Mastodon:
2112 """ 2112 """
2113 Update the profile for the currently logged-in user. 2113 Update the profile for the currently logged-in user.
2114 2114
2115 'note' is the user's bio. 2115 `note` is the user's bio.
2116 2116
2117 'avatar' and 'header' are images. As with media uploads, it is possible to either 2117 `avatar` and 'header' are images. As with media uploads, it is possible to either
2118 pass image data and a mime type, or a filename of an image file, for either. 2118 pass image data and a mime type, or a filename of an image file, for either.
2119 2119
2120 'locked' specifies whether the user needs to manually approve follow requests. 2120 `locked` specifies whether the user needs to manually approve follow requests.
2121 2121
2122 'bot' specifies whether the user should be set to a bot. 2122 `bot` specifies whether the user should be set to a bot.
2123 2123
2124 'fields' can be a list of up to four name-value pairs (specified as tuples) to 2124 `discoverable` specifies whether the user should appear in the user directory.
2125
2126 `fields` can be a list of up to four name-value pairs (specified as tuples) to
2125 appear as semi-structured information in the users profile. 2127 appear as semi-structured information in the users profile.
2126 2128
2127 Returns the updated `user dict` of the logged-in user. 2129 Returns the updated `user dict` of the logged-in user.
Powered by cgit v1.2.3 (git 2.41.0)