Refreshing Tokens with Google API for Google Calendar v3
问题 I'm trying to use Google API (PHP) to perform a daily sync between a system calendar and the user's Google Calendars. I want a system user to be able to set up access to their calendar once from within the system, then the system can synchronise the calendars each day via a cron job. I have managed to get the entire process working, from authorising the access to syncing the calendars, but I am getting stuck with the token expiry times. The way I thought it worked in v3 was the old token