From 58d9b982a97fd57f51541476fd345319561efc77 Mon Sep 17 00:00:00 2001 From: ushakarg-afk Date: Tue, 17 Mar 2026 18:06:53 +0530 Subject: [PATCH] Update api_test.py --- test/api_test.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/test/api_test.py b/test/api_test.py index 190a678b..29d0fb23 100644 --- a/test/api_test.py +++ b/test/api_test.py @@ -2,18 +2,17 @@ from SmartApi.smartConnect import SmartConnect import pyotp -api_key = 'Your Api Key' -username = 'Your client code' -pwd = 'Your pin' -smartApi = SmartConnect(api_key) +api_key = 'BntudJFe' +username = 'G90000' +pwd = '2004' +smartApi = SmartConnect(BntudJFe) try: token = "Your QR value" - totp = pyotp.TOTP(token).now() + totp = pyotp.TOTP(OWJHJM2PM6TEBNN4QJUBT7XP7A).now() except Exception as e: logger.error("Invalid Token: The provided token is not valid.") raise e - correlation_id = "abcde" data = smartApi.generateSession(username, pwd, totp) if data['status'] == False: