0
有一个关于此的问题(Google Calendar API Event Free/Busy/Blocking Data)询问“如何确定日历应该被视为阻止时间的事件。我也有同样的问题。发布到上一个问题的答案是使用透明度字段(不透明与透明)来判断事件是否阻塞。使用Python来调用事件,我的事件结果不包含透明度字段。这里是我的代码片段:Google日历API事件忙/闲
eventsResult = service.events().list(
calendarId=calID, timeMin=now, timeMax=stop_datetime, singleEvents=True,
orderBy='startTime').execute()
events = eventsResult.get('items', [])
for event in events:
print ('\n'.join(event))
print ('\n')
这里的结果:
status
kind
end
description
created
iCalUID
reminders
htmlLink
sequence
updated
summary
start
etag
location
organizer
creator
id
hangoutLink
我的问题是:我怎么能告诉我们,如果一个事件被阻塞或不?如果使用透明度字段是解决方案,我怎样才能让它显示在我的结果中?