|
@@ -25,10 +25,10 @@ def jsonToUser(jsonstring) -> User:
|
|
|
return u
|
|
|
|
|
|
#Функция обращения к апи и получение токена
|
|
|
-def requestGetToken() -> str:
|
|
|
- login = "79876543210"
|
|
|
- password = "admin12345@"
|
|
|
- url = "https://user.sharix-app.org/auth/token/login/"
|
|
|
+def requestGetToken(login, password, url) -> str:
|
|
|
+ #login = "79876543210"
|
|
|
+ #password = "admin12345@"
|
|
|
+ #url = "https://user.sharix-app.org/auth/token/login/"
|
|
|
data = {
|
|
|
"password": password,
|
|
|
"phone_number": login
|