implement app_verify_credentials, document entity change
This commit is contained in:
pare
798f243af2
commit
67824478af
S'han modificat 2 arxius amb 15 adicions i 1 eliminacions
|
@ -374,6 +374,7 @@ Application dicts
|
||||||
{
|
{
|
||||||
'name': # The applications name
|
'name': # The applications name
|
||||||
'website': # The applications website
|
'website': # The applications website
|
||||||
|
'vapid_key': # A vapid key that can be used in web applications
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,7 @@ class Mastodon:
|
||||||
__SUPPORTED_MASTODON_VERSION = "2.4.3"
|
__SUPPORTED_MASTODON_VERSION = "2.4.3"
|
||||||
|
|
||||||
# Dict versions
|
# Dict versions
|
||||||
__DICT_VERSION_APPLICATION = "1.0.0"
|
__DICT_VERSION_APPLICATION = "2.7.2"
|
||||||
__DICT_VERSION_MENTION = "1.0.0"
|
__DICT_VERSION_MENTION = "1.0.0"
|
||||||
__DICT_VERSION_MEDIA = "2.3.0"
|
__DICT_VERSION_MEDIA = "2.3.0"
|
||||||
__DICT_VERSION_ACCOUNT = "2.4.0"
|
__DICT_VERSION_ACCOUNT = "2.4.0"
|
||||||
|
@ -1166,6 +1166,19 @@ class Mastodon:
|
||||||
"""
|
"""
|
||||||
return self.__api_request('GET', '/api/v1/custom_emojis')
|
return self.__api_request('GET', '/api/v1/custom_emojis')
|
||||||
|
|
||||||
|
###
|
||||||
|
# Reading data: Apps
|
||||||
|
###
|
||||||
|
@api_version("2.0.0", "2.7.2", __DICT_VERSION_APPLICATION)
|
||||||
|
def app_verify_credentials(self):
|
||||||
|
"""
|
||||||
|
Fetch information about the current application.
|
||||||
|
|
||||||
|
Returns an `application dict`_.
|
||||||
|
|
||||||
|
"""
|
||||||
|
return self.__api_request('GET', '/api/v1/apps/verify_credentials')
|
||||||
|
|
||||||
###
|
###
|
||||||
# Reading data: Webpush subscriptions
|
# Reading data: Webpush subscriptions
|
||||||
###
|
###
|
||||||
|
|
Loading…
Referencia en una nova incidència