NeoAPI.__init__() got an unexpected keyword argument 'on_message'
ssthakare2023 opened this issue · comments
client = NeoAPI(consumer_key=CK, consumer_secret=CS,
environment='prod',on_message=on_message, on_error=on_error, on_close=None, on_open=None)
#Initiate login by passing any of the combinations mobilenumber & password (or) pan & password (or) userid & password
Also this will generate the OTP to complete 2FA
ret = client.login(mobilenumber=Mob, password=pwd)
token= 'TOTP'
start = client.session_2fa(OTP=token)
TypeError Traceback (most recent call last)
Cell In[25], line 1
----> 1 client = NeoAPI(consumer_key=CK, consumer_secret=CS,
2 environment='prod',on_message=on_message, on_error=on_error, on_close=None, on_open=None)
4 #Initiate login by passing any of the combinations mobilenumber & password (or) pan & password (or) userid & password
5 # Also this will generate the OTP to complete 2FA
6 ret = client.login(mobilenumber=Mob, password=pwd)
TypeError: NeoAPI.init() got an unexpected keyword argument 'on_message
@ssthakare2023
updated version of neo api has removed the param for on_message, on_error, on_open.
now just use
client = NeoAPI(consumer_key= consumer_key,consumer_secret=secret_key,environment="prod")