我们的网站使用php以.ics文件格式阅读谷歌日历,该格式由最终用户维护。它获取此URL:
https://www.google.com/calendar/ical/dogsport.org%40hotmail.com/public/basic.ics
问题在于,某些不良数据会出现在那里......即用于日历事件的数据,当您在Google中查看日历时,该数据不会出现。但是,它仍然是.ics文件中的一个事件。下面有两个例子......
所以问题是,有没有办法认识到数据是坏的并且在我的php脚本中也忽略它?
我的意思的两个例子......它们出现在ics文件中,但没有出现在日历的谷歌日历显示中。
SUMMARY: Reg/Nat Prep - SHORT Wk 1
DTSTART: 20150730T183000
DTEND: 20150730T200000
RRULE: FREQ=WEEKLY;COUNT=2;BYDAY=TH
DTSTAMP: 20150801T221348Z
UID: osk40g350ccpukjah3q6aj6110_R20150731T003000@google.com
CREATED: 20150731T001352Z
DESCRIPTION:
LAST-MODIFIED: 20150731T001504Z
LOCATION:
SEQUENCE: 1
STATUS: CONFIRMED
TRANSP: TRANSPARENT
SUMMARY: Reg/Nat Prep Class - SHORT Wk 1
DTSTART: 20150730T183000
DTEND: 20150730T200000
RRULE: FREQ=WEEKLY;UNTIL=20150731T002959Z;BYDAY=TH
DTSTAMP: 20150801T221348Z
UID: osk40g350ccpukjah3q6aj6110@google.com
CREATED: 20150731T001352Z
DESCRIPTION:
LAST-MODIFIED: 20150731T001504Z
LOCATION:
SEQUENCE: 1
STATUS: CONFIRMED
TRANSP: TRANSPARENT