我已經按照這裏的方向https://developers.google.com/api-client-library/php/auth/service-accounts 我添加的 https://www.googleapis.com/auth/admin.directory.group
https://www.googleapis.com/auth/admin.directory.user
h
我想使用日曆ID在我的日曆中插入事件。 我剛剛從here 複製的代碼片段,並從here 這裏下載SDK是我的代碼 <?php
// Refer to the PHP quickstart on how to setup the environment:
// https://developers.google.com/google-apps/calendar/quickstart/php
/