@admin Sir.
My client code is G56384.
Govind
@Govind
Best posts made by Govind
Latest posts made by Govind
-
RE: Getting None on GenerateSession
@rajanprabu Yes. I changed password in web.
-
RE: Getting None on GenerateSession
@rjbanna Hello Sir,
I tried with regenerated API_KEY. I have checked and verified all credentials (API_Key , client code and password).Still getting
Password or Userid is incorrect or expired . And data as None.
Kindly help. -
RE: Getting None on GenerateSession
@admin Dear Sir ,
Please find below the extract from my code. (Only replaced password with ****.package import statement
from smartapi import SmartConnect
#from smartapi.smartConnect import SmartConnect
import smartapi.smartExceptions#create object of call
obj=SmartConnect(api_key="EDaaRIB4")
#obj=SmartConnect(api_key="dqsR8Ay7")#login api call
data = obj.generateSession("G56384","**********")
#refreshToken= data['data']['refreshToken']
print (data)#refreshToken= data['refreshToken']
#fetch the feedtoken
feedToken=obj.getfeedToken()
print(feedToken)
#fetch User Profile
#userProfile= obj.getProfile(refreshToken) -
Getting None on GenerateSession
obj=SmartConnect(api_key="your api key")
data = obj.generateSession("Your Client ID","Your Password")
refreshToken= data['data']['refreshToken']
print (data)
After entering correct API key , user ID and password , Above command returns None for data. not able to get token.