☰
Login
Signup
Home
›
Java client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.2K
All Categories
0
Incidents
127
Node JS client
38
Go client
769
.Net API client
362
Kite Publisher
532
.Net / VBA / Excel (3rd party)
435
Algorithms and Strategies
969
Java client
1K
API clients
401
PHP client
3.8K
Python client
331
Mobile and Desktop apps
1.3K
Market data (WebSockets)
3.2K
General
In this Discussion
June 2019
sujith
Auto login
mohanarakere
June 2019
in
Java client
Hi,
How to login to kite connect automatically through java program. As of now, it is manual.
KiteConnect kite = new KiteConnect(API_KEY);
kite.setUserId(USER_ID);
String loginURL = kiteSdk.getLoginURL();
User user = kite.generateSession(
requestAccessToken
, apiSecret);
kite.setAccessToken(user.accessToken);
kite.setPublicToken(user.publicToken);
Here, as of now, I have to paste login url in browser and provide login credentials and should get the request token.
but, I want to get
requestAccessToken
through program without pasting the login url in browser.
Is it possible to help here.
Thanks in advance
sujith
June 2019
It is mandatory by the exchange that a user has to log in manually at least once a day. We don't recommend automating login.
sujith
June 2019
If you wish to copy request token from the URL then you need to listen to url changes by setting some kind of lister to your browser control or webview and pick the url query params with the key request_token.
This discussion has been closed.