我已经为我的Google日历API项目设置了服务帐户。我们的想法是,我的网站能够连接到我的谷歌日历和展示活动等。因为它是由谷歌 Service account clients are created when domain-wide delegation is
enabled on a service account.
这的确发生了,所以我有一个连接OAuth 2.0 client ID放。
我正尝试使用Google的Calendar API创建(插入)新事件。我保持简单并使用quickstart.php来测试。最初的quickstart.php代码工作(获取日历事件),所以我知道我能够连接。 然而,当我尝试使用events.insert(),它给了我下面的错误: PHP Notice: Undefined variable: service in /webroot/Website/T