Google Calendar API没有描述

时间:2019-02-06 01:22:57

标签: php google-apps-script google-calendar-api

我正在尝试使用PHP API在Linux网络服务器上访问Google日历。我连接到日历,可以看到这些事件对象上有很多东西,但是描述始终为空,并且没有where字段。前两个适用于每个事件:

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

这些行对于每个事件均不返回任何内容:

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

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

我要去哪里?

Sample Calendar

1 个答案:

答案 0 :(得分:0)

看看here。我认为您可能想尝试 getLocation()

根据this getDescription()应该起作用。