access user calendar with service account

只谈情不闲聊 提交于 2019-12-02 02:34:23

You cannot add an event to a calendar that has not been specifically shared with your Google project. You must either share each calendar with the service account, or you must use OAuth2 with web application credentials so that each user can give you access.

When I started this the current client google-php-api-client was 1.1.0-beta. Some weeks later we are now at 1.1.2. Upgrading to this version resolved my problem. Adding a service-account gives an application the possibility to identify itself with Google. If you add the scopes to the google admin console as I have done, The service-account has access to all the data specified by the scope for every user in the domain. Thx all for the responses.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!