standalone java program login process

Gunapvkn
Team,

Kindly anyone give me a sample to login using standalone java program which will not have any browser interface .
  • sivadorai
    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.
  • tahseen
    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
  • sujith
    @Gunapvkn,
    You will need to use Webview inside your app.
Sign In or Register to comment.