I am using google-client-api 2.0 and wants to sync the calendar events of already logged in user (logged in using google oauth) , Currently i am using springboot to process the event .
can anybody please point out how i can use already generated access token(throough oauth2)
to retrive google calendar events.
I have seen the code at google tutorial (https://developers.google.com/calendar/api/quickstart/java) .
but since its a web app i dont want to use
LocalServerReceiver receiver = new LocalServerReceiver.Builder().setPort(8888).build();
Credential credential = new AuthorizationCodeInstalledApp(flow, receiver).authorize(“user”);
as it would need port binding not sure if that would open up on server .
also since i already have token i dont want separate location to store the token once they are logged in
please advice