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.getProfile());
Still the Req token required browser flow, I'm also wondering how to generate Req token programatically, couldnt find any in API documentation.
As per regulation it is not allowed to allow fully automatic trading. And that is why Zerodha cannot provide API for request token. Not that Zerodha cannot provide but it is bound by regulation
kiteSdk.setUserId("USER ID");
User user = kiteSdk.generateSession("REQ TOKEN","SECRET");
kiteSdk.setAccessToken(user.accessToken);
System.out.println(kiteSdk.getProfile());
Still the Req token required browser flow, I'm also wondering how to generate Req token programatically, couldnt find any in API documentation.
You will need to use Webview inside your app.