douiwn6941 2017-06-20 12:30
浏览 75

使用php通过.ics文件删除gmail日历事件

I have to delete a calendar event from gmail calendar through .ics file. My .ics file like this:

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//xyz.com//NONSGML kigkonsult.se iCalcreator 2.18//
METHOD:CANCEL
X-WR-TIMEZONE:UTC
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
UID:93450@xyz.com
DTSTAMP:20170620T114123Z
DESCRIPTION:test description
DTSTART:20170621T070000Z
DTEND:20170621T073000Z
LOCATION:
SEQUENCE:2
STATUS:CANCELLED
SUMMARY:test summary
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:test discription
TRIGGER:-PT0H15M0S
END:VALARM
END:VEVENT
END:VCALENDAR

It is working fine for email client (outlook and Thunderbird) but not working for gmail calendar. Please give you suggestions to delete from gmail calendar

  • 写回答

1条回答 默认 最新

  • doufusi2013 2017-06-21 09:07
    关注

    Right well, Thunderbird and outlook are both programs with calendars that are 'on the computer'. So they can probably do magical things with attachments such as preview and in this case remove/add/accept events. Gmail being online can't do such things browser security etc. So don't think you have many options.

    Google Calendar does have an API which you could use. https://developers.google.com/google-apps/calendar/quickstart/php

    I would suspect you'll encounter similar problems for the Microsoft live calendar or perhaps other online calendars that people might use.

    In the end you either need to supply a way to 'link' your application to the persons online calendar and use the API supplied (if it exists) or perhaps dodge the question entirely by supplying an online ics file through your own API that people can embed into there calendar (I know Outlook can do this). Or just don't have the ics files and instead just the calendar in your own application (which I think is where the ics files are coming from?)

    Just a google seems to say the answer is a no -https://productforums.google.com/forum/#!topic/calendar/9uHpOige9Co

    Although... http://blog.tomverhoeff.nl/2011/01/31/howto-undo-ical-import-in-google-calendar/

    评论

报告相同问题?

悬赏问题

  • ¥15 多址通信方式的抗噪声性能和系统容量对比
  • ¥15 winform的chart曲线生成时有凸起
  • ¥15 msix packaging tool打包问题
  • ¥15 finalshell节点的搭建代码和那个端口代码教程
  • ¥15 Centos / PETSc / PETGEM
  • ¥15 centos7.9 IPv6端口telnet和端口监控问题
  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 海浪数据 南海地区海况数据,波浪数据
  • ¥20 软件测试决策法疑问求解答