Added comments

This commit is contained in:
2024-02-15 16:58:37 +03:00
parent 19cf282e08
commit dba5c60080
42 changed files with 388 additions and 11 deletions

View File

@@ -4,7 +4,21 @@ from .api_method import ApiMethod
class User(ApiMethod):
"""User class for API Methods"""
async def get(self, id: str, username: str):
"""
Asynchronous function to retrieve user information by ID and username.
Args:
id (str): The user ID.
username (str): The username.
Raises:
Exception: If the API request failing.
Returns:
None
"""
payload = {'id': id, 'username': username}
async with ClientSession() as session:
response = await session.post(