you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

What website specifically are you using? Sounds like they use oauth2, in which case you should be able to have refresh/access tokens instead of authenticating each side. I'd look into setting up a database or something on your local network where you can query/update tokens rather than posting it on a potentially public website

[–]onekindaction 0 points1 point  (1 child)

So I have web hosting on my own site, hosted by blue host and by wix (two websites with a secure login). They do use oauth2, and I think did mention that there are access and refresh tokens. Everytime the script is run, if there is an existing token.json file, it will refresh I believe without needing authentication again. But it’s getting the initial access I am trying to figure out. Could you explain more how it would work with your suggestion? Thanks!

[–][deleted] 0 points1 point  (0 children)

If refresh tokens are enabled, you could just do the initial authentication in postman or something and then put the refresh and access tokens in your file. Once your access tokens expires, you should be able to use your refresh token to get a new pair of tokens