首页 > 解决方案 > Google Calendar API 没有描述

问题描述

我正在尝试使用 PHP API 在我的 linux Web 服务器上访问我的 Google 日历。我与日历连接,可以在这些事件对象上看到大量内容,但描述始终为空,并且没有 where 字段。前两个适用于每个事件:

$event->getSummary();  // gets the correct summary
$event->getStart();    // gets the correct start date

这些行不会为每个事件返回任何内容:

$event->getLocation(); 
$event->getDescription(); 

日志文件中没有错误或警告。

在哪里转?

示例日历

标签: phpgoogle-apps-scriptgoogle-calendar-api

解决方案


看看这里。我想你可能想试试getLocation()

根据这个getDescription() 应该可以工作。


推荐阅读