mirror of
https://github.com/remnawave/python-sdk.git
synced 2026-08-04 14:37:36 +00:00
example fix
Changing the get_all_users_v2 method in the example to the current get_all_users method
This commit is contained in:
parent
36fa00b1ed
commit
afc3b93e3e
1 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ async def main():
|
|||
remnawave = RemnawaveSDK(base_url=base_url, token=token)
|
||||
|
||||
# Fetch all users
|
||||
response: UsersResponseDto = await remnawave.users.get_all_users_v2()
|
||||
response: UsersResponseDto = await remnawave.users.get_all_users()
|
||||
total_users: int = response.total
|
||||
users: list[UserResponseDto] = response.users
|
||||
print("Total users: ", total_users)
|
||||
|
|
@ -121,4 +121,4 @@ This SDK was originally developed by [@kesevone](https://github.com/kesevone) fo
|
|||
|
||||
Previously maintained by [@sm1ky](https://github.com/sm1ky) at [`sm1ky/remnawave-api`](https://github.com/sm1ky/remnawave-api).
|
||||
|
||||
Now officially maintained by the Remnawave Community at [`remnawave/python-sdk`](https://github.com/remnawave/python-sdk).
|
||||
Now officially maintained by the Remnawave Community at [`remnawave/python-sdk`](https://github.com/remnawave/python-sdk).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue