Finally saw some of the older responses and solved this. One last query is - how long is the saved Access Token valid ? Can I use it all along or should I generate one everyday - that would be painful process ..
Also the documentation needs to be …
KiteConnect kiteSdk = new KiteConnect("API KEY");
kiteSdk.setUserId("USER ID");
User user = kiteSdk.generateSession("REQ TOKEN","SECRET");
kiteSdk.setAccessToken(user.accessToken);
System.out.println(kiteSdk.getProfi…
Post some more analysis I found that the programmatic call to set Request Token post login validation, seems to be valid for 1 call only. After which it throws Token Exception. Anyhow I managed to execute ones and get the profile object printed.
Ho…