返回的Google日历活动没有开始日期或结束日期

时间:2016-10-28 11:24:47

标签: php google-calendar-api

我以标准方式使用php获取事件:

// get events

$events = $this->_service->events->listEvents($calendarId, $params);

// get each event and return an array of those
foreach ($events->getItems() as $event) { ....

问题是我的事件结果中没有“开始”或“结束”属性,这些属性不是重复发生的(这似乎是一种特殊情况)。 我发送的唯一参数是检索事件+日历ID的时间间隔。

timeMin: '2016-10-28T00:00:00Z', 
timeMax: '2016-10-28T23:59:59Z'

这是我得到的对象

anyoneCanAddSelf: null
attendeesOmitted: null
colorId: null
created: "2016-10-28T10:41:31.000Z"
description: null
endTimeUnspecified: null
etag: ""2955305459750000""
guestsCanInviteOthers: null
guestsCanModify: null
guestsCanSeeOtherGuests: null
hangoutLink: "https://plus.google.com/hangouts/xxxxx/another-meeting?hceid=bWNraW5zZXkudmlhZGly…"
htmlLink: "https://www.google.com/calendar/event?eid=anVyNjd0OTk0cGs2c2px...
iCalUID: "jur67t994pk6sjqjf4nf66azdazdae98@google.com"
id: "jur67t994pkazdazdaz6sjqjf4nf66ae98"
kind: "calendar#event"
location: "8e Arrondissement, 75008 Paris, France"
locked: null
privateCopy: null
recurrence: null
recurringEventId: null
sequence: 0
status: "confirmed"
summary: "Another meeting"
transparency: null
updated: "2016-10-28T11:05:29.875Z"
visibility: null

我知道我提供的信息不足以确切知道这里发生了什么。但我只是在寻找一些提示。我从下午1点到下午2点通过日历界面设置此事件。获取事件但没有持续时间(开始/结束属性)。

如果有人遇到同样的问题,请提前感谢他的帮助! :)

0 个答案:

没有答案