(Client Id: V206345) in generateSession, getting DataException: Couldn't parse the JSON response received from the server: b''
-
In Generate Session function
-
@vijaytm02 said in (Client Id: V206345) in generateSession, getting DataException: Couldn't parse the JSON response received from the server: b'':
Where do we need to use secret key ?
here
-
@rajanprabu @admin
2 questions- Where do we need to use secret key ?
- If it is not used anywhere why it is issued ?
-
@rajanprabu @admin
Looks like sample.py in examples folder is flawed. Please change it.
In the meantime can i get working sample code. right now i'm confused where secret key will be used. -
@vijaytm02 said in (Client Id: V206345) in generateSession, getting DataException: Couldn't parse the JSON response received from the server: b'':
obj=SmartConnect()
r u missing api key ?
obj=SmartConnect(api_key="your api key")
-
@rajanprabu
Code below (Obviously with my credentials):from smartapi.smartConnect import SmartConnect #from smartapi import SmartConnect
obj=SmartConnect()
#login api calldata = obj.generateSession('My Client Id','Password')
-
please share the code you have tried..