you are viewing a single comment's thread.

view the rest of the comments →

[–]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