mirror of
https://github.com/deesiigneer/pyspapi.git
synced 2026-04-20 12:35:26 +00:00
fix endpoint
This commit is contained in:
@@ -7,4 +7,4 @@ __author__ = 'deesiigneer'
|
|||||||
__url__ = 'https://github.com/deesiigneer/pyspapi'
|
__url__ = 'https://github.com/deesiigneer/pyspapi'
|
||||||
__description__ = 'API wrapper for SP servers written in Python.'
|
__description__ = 'API wrapper for SP servers written in Python.'
|
||||||
__license__ = 'MIT'
|
__license__ = 'MIT'
|
||||||
__version__ = "3.1.1"
|
__version__ = "3.1.2"
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ class SPAPI(APISession):
|
|||||||
:return: Объект Account, представляющий аккаунт текущего пользователя.
|
:return: Объект Account, представляющий аккаунт текущего пользователя.
|
||||||
:rtype: Account
|
:rtype: Account
|
||||||
"""
|
"""
|
||||||
me = await self.__get('account/me')
|
me = await self.__get('accounts/me')
|
||||||
return Account(
|
return Account(
|
||||||
account_id=me['id'],
|
account_id=me['id'],
|
||||||
username=me['username'],
|
username=me['username'],
|
||||||
|
|||||||
Reference in New Issue
Block a user