I use Google Calendar API to get data in java program, for use new API, I must use OAUTH2, so when program run everytime, it will open a web page to authorize, I must manually to handle it. How can I run the program automatically? because I want it runs by itself periodically.