I would like to create a client application, which manages the calendar of my google account by calling the google_api.
I didn't quite understand how to authenticate requests.
I am using google-api-php-client
https://github.com/googleapis/google-api-php-clientI've read the AOuth2 documentation, and I've been able to put the code into practice and authenticate via AOuth2, but I'm not sure if that's the right authentication method for me.
I have to manage the calendar of my google account only!
https://developers.google.com/workspace/guides/create-credentials#webYou can use either an:
• OAuth client ID
• or a service account with domain delegation of authority
maybe the "service account" is the one for me ???
Or do I have to use OAuth2 authentication, retrieve an acces_token, store it in my application, and use it on every request?
tks from now for your answers