You can get access token and refresh token at the first time. When the access token was expired , you can refresh token via refresh token (Google provided an API to refresh token). Then you can get the new access token.
在 2015年6月3日星期三 UTC+8下午5:47:13,Anders Both写道: > > Hi Group. > > I am migrating my server program from username/password into OAuth 2.0. > > It seems kind of complicated to mee :) - because the documentation says > about time-limeted tokens, and windows shown to the end-user. > > What I need is to let my server program connect to my own google account, > and write data to spreedsheets. This need to be done on an ongoing basis, > so it it not good if I need to manually refresh tokens. I need something > similar to username/password. > > What type of OAuth 2.0 should I look for ? > > Best regards. > > Anders > > > -- You received this message because you are subscribed to the Google Groups "Google Spreadsheets API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
