feat: add models and enum

This commit is contained in:
firedotguy
2026-01-30 20:49:49 +03:00
parent 1a606da55f
commit c7e3812ee8
17 changed files with 210 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ def get_posts(token: str, username: str | None = None, limit: int = 20, cursor:
if tab:
data['tab'] = tab
return fetch(token, 'get', 'posts', data)
return fetch(token, 'get', 'posts', data)['data']
def get_post(token: str, id: str):
return fetch(token, 'get', f'posts/{id}')