-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added set_session_token function #40
base: master
Are you sure you want to change the base?
Conversation
@algowhizz Where can i get user_session_token ? Can you guide me on that. |
|
@algowhizz One last question on this..
Is my understanding correct. |
OTT needs to be generated everyday as it basically replaces the OTP that you receive via e-mail or SMS. Since it is easier to generate OTT than fetch OTP using selenium, I have written the script for automated OTT and session token generation every day.
Since OTT has to be generated everyday, the session token follows the OTT. So, the procedure is as simple as : generate OTT followed by session token (valid for 1 day). Then use the session token in your further code. If you dont wish to do all this, you can simply use the standard method where OTP is used to initialise ks_client. |
@algowhizz |
@algowhizz |
Hi,
I have added a function which allows the user to pass session_token generated via curl or requests using various session_API login methods like OTT. Once session_token is generated, it can be set using
client.set_session_token
as :followed by usual client operations.
I believe this is a good functionality to add because it allows user to initiate client without OTP access_code.