Pyhiveapi icon indicating copy to clipboard operation
Pyhiveapi copied to clipboard

[FEATURE] Example login script

Open davet2001 opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe. When trying to get the library to work standalone, I find I lack a concrete working example of how to log in, perform SMS_MFA, then save the resulting tokens to a file.

Describe the solution you'd like I would like the project include a file such as example_login.py, that I could run, be prompted for username/password, and for the tokens to be saved to a file in the working directory. It should perform a simple function like listing the connected devices. When I run the file again, it should log in using the newly saved file, not trigger a 2FA challenge, and list the same connected devices.

Additional context This part of getting the library to work is very time consuming to debug.

davet2001 avatar Sep 12 '23 20:09 davet2001