Invalid credentials: Google API calendar

前端 未结 2 623
长情又很酷
长情又很酷 2020-12-22 00:00

I am new to using Google APIs. I followed steps to setup Google Calendar sample code in eclipse using Google client library. I deployed the code to app engine using the cmd

2条回答
  •  既然无缘
    2020-12-22 00:35

    In order to receive a refresh token, you need to have access_type=offline in the authorization request: https://developers.google.com/accounts/docs/OAuth2WebServer#offline

    Note you will only get the refresh token once, together with the first access token.

提交回复
热议问题