Add debug statement
This commit is contained in:
@@ -32,9 +32,12 @@ class AuthController:
|
|||||||
)
|
)
|
||||||
|
|
||||||
response = auth_api.login(auth_request_dto=auth_request)
|
response = auth_api.login(auth_request_dto=auth_request)
|
||||||
print("Success:", response.success)
|
|
||||||
print("Message:", response.message)
|
|
||||||
print("Data:", response.data)
|
print("Data:", response.data)
|
||||||
|
print(response.data["authToken"])
|
||||||
|
print(response.data["clientId"])
|
||||||
|
|
||||||
|
self._auth_data.set_client_id(response.data["authToken"])
|
||||||
|
self._auth_data.set_token(response.data["clientId"])
|
||||||
return jsonify({"success" : response.success, "message" : response.message , "data" : response.data}), 200
|
return jsonify({"success" : response.success, "message" : response.message , "data" : response.data}), 200
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"Exception when calling AuthAPI->login: {e}")
|
print(f"Exception when calling AuthAPI->login: {e}")
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class MessageController:
|
|||||||
def __init__(self, app, auth_data : AuthData, host : str):
|
def __init__(self, app, auth_data : AuthData, host : str):
|
||||||
self._register_routes(app)
|
self._register_routes(app)
|
||||||
self.config = Configuration(host=host)
|
self.config = Configuration(host=host)
|
||||||
self.auth_data = auth_data
|
self._auth_data = auth_data
|
||||||
|
|
||||||
def _register_routes(self, app):
|
def _register_routes(self, app):
|
||||||
app.add_url_rule("/message/send", view_func=self.send, methods=['POST'])
|
app.add_url_rule("/message/send", view_func=self.send, methods=['POST'])
|
||||||
|
|||||||
Reference in New Issue
Block a user