How to authenticate Google Calendar API v3 without user interaction?
I am using google and external calendar sync (console app). I have tried several ways to connect to my calendar in Delphi. In the latest version of the Google API, you have two options:
- API Key (Public Calendar)
- OAuth2.0 (private calendar)
The calendar is not publicly available. I've looked at a few examples, but everywhere there is a need for user interaction. I want to identify myself without user interaction. How can i do this?
source to share
I don't know how to use it in Delphi, but there is a client API library for java, python ... I have already used java and it clearly explained how to use it in the documentation.
Google Calendar API 3 Doc Page: https://developers.google.com/google-apps/calendar/
However, the service asks you to be authenticated to use it (which is your problem, if I understand this well, you don't want the user to have to authenticate). So I suggest you take a look at OAuth2.0. https://developers.google.com/google-apps/calendar/auth
Here are some simple examples of using google-api-java-client: https://code.google.com/p/google-api-java-client/wiki/OAuth2
And you should be more specific about the capabilities of the Google OAuth service account. Service account with OAuth2.0. (See here https://developers.google.com/accounts/docs/OAuth2#serviceaccount ). It will provide a service account for your application from which you can handle calendars for your application.
And here you will find a sample showing how to do it with Java. ( https://code.google.com/p/google-api-java-client/wiki/OAuth2#Service_Accounts ). But maybe it is the public API key you are talking about ... Not sure if I remember correctly.
Hope this helps you figure out how to do this.
source to share