Php 访问谷歌日历数据

Php 访问谷歌日历数据,php,api,google-calendar-api,Php,Api,Google Calendar Api,我正试图从谷歌的公共日历上获取一些基本的活动信息。在PHP中,它如下所示: $xml = simplexml_load_file('http://www.google.com/calendar/feeds/[username]/public/basic?start-min=2014-01-01T00:00:00&start-max=2016-03-24T23:59:59'); var_dump($xml); 这将按预期带回XML数据以及事件数据 public 'id' => st

我正试图从谷歌的公共日历上获取一些基本的活动信息。在PHP中,它如下所示:

$xml = simplexml_load_file('http://www.google.com/calendar/feeds/[username]/public/basic?start-min=2014-01-01T00:00:00&start-max=2016-03-24T23:59:59');
var_dump($xml);
这将按预期带回XML数据以及事件数据

public 'id' => string 'http://www.google.com/calendar/feeds/[username]/public/basic/k524jsujs242bag0fsqfveiij8' (length=98)
public 'published' => string '2014-01-29T21:04:51.000Z' (length=24)
public 'updated' => string '2014-01-29T22:12:20.000Z' (length=24)
public 'category' => 
object(SimpleXMLElement)[1996]
  public '@attributes' => 
    array (size=2)
      'scheme' => string 'http://schemas.google.com/g/2005#kind' (length=37)
      'term' => string 'http://schemas.google.com/g/2005#event' (length=38)
public 'title' => string 'busy' (length=4)
public 'summary' => string 'When: Thu Jan 30, 2014 11am to 12pm&nbsp;PST<br>' (length=49)
public'id'=>string'http://www.google.com/calendar/feeds/[用户名]/public/basic/K5244JSUJS242BAG0FSQFWEIJ8'(长度=98)
公共“已发布”=>string“2014-01-29T21:04:51.000Z”(长度=24)
公共“更新”=>string“2014-01-29T22:12:20.000Z”(长度=24)
公共“类别”=>
对象(SimpleXMLElement)[1996]
公共'@attributes'=>
数组(大小=2)
'方案'=>字符串'http://schemas.google.com/g/2005#kind'(长度=37)
'术语'=>字符串'http://schemas.google.com/g/2005#event'(长度=38)
公共'title'=>字符串'busy'(长度=4)
公共“摘要”=>string“时间:2014年1月30日星期四太平洋标准时间上午11点至下午12点(长度=49)
我的问题是,在事件中,没有一个标题被填充——它们都只是显示“忙碌”,即使在实际的日历事件中保存了一个有效的标题


有人知道如何获取实际的事件标题吗?

问题是,日历虽然是公共的,但没有在Google Apps admin中设置为共享所有事件数据

有关更多信息,请参见此处: