Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
255 views
in Technique[技术] by (71.8m points)

google sheets api - How to get tokens valid for longer than 24h

I'm trying to get a token valid for a long time and I am not sure how to proceed. I'm sending data to a Google Sheet on a daily basis so a 24h token doesn't allow me to have this automated.

Thanks

question from:https://stackoverflow.com/questions/65903815/how-to-get-tokens-valid-for-longer-than-24h

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The generic way of obtaining tokens expiring longer than 24 hours is to get a refresh token. You can start by reading the instructions here:

Using OAuth 2.0 to Access Google APIs

Get Refresh Tokens

Refreshing Access Tokens


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...