Skip to content
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

Is the userId always the same? #83

Open
simonf2004 opened this issue Jun 27, 2024 · 2 comments
Open

Is the userId always the same? #83

simonf2004 opened this issue Jun 27, 2024 · 2 comments

Comments

@simonf2004
Copy link

Hello, i have started using this library and i am getting the 403 error about 40% of time i try to login (even though i have changed the user agent).
I think one possible solution to this might be to login just once, keep the userId (that the login returns) and just get the data with this userid.
My question is: Is userId always the same or does it change from time to time. If it was always the same i could just login once and then always use the obtained userid no?

Thank you very much and have a great day

@indykoning
Copy link
Owner

I'm pretty sure the userId is indeed always the same, however i do not believe the userId is authentication. Rather i'm guessing a cookie or session is started and thus you need to log in before anything else.

You could try it though, by logging in using one script. Then starting another script to get the plant list using that userId

@simonf2004
Copy link
Author

Yes, you are right. The Userid seems to be always the same and it isnt authenticiation. It wouldnt really make sense. Thanks for your reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants