【问题标题】:Retrieving a Google Calendar Event with Zend_Gdata Library Using Event URL使用事件 URL 使用 Zend_Gdata 库检索 Google 日历事件
【发布时间】:2011-01-16 19:46:17
【问题描述】:

我正在尝试使用 Zend Gdata 库检索 Google 日历事件。

当我创建一个事件时,我将 insertevent 方法返回的事件 URL 存储在我的数据库中。最初我以为我可以使用此 URL 稍后删除该事件。经过一番研究,我意识到您实际上需要一个特殊的 URL,它是事件 URL,并附加了一个额外的数字字符串。我查看了 Zend Gdata 库中的各种事件检索方法,但它们似乎都不允许您只传递事件 URL。它们似乎都需要文本或日期范围查询。我将如何检索我已经知道其 URL 的事件的删除 URL?

【问题讨论】:

    标签: php zend-framework gdata-api google-calendar-api zend-gdata


    【解决方案1】:

    我最终意识到,当您使用 insertevent 方法时,您可以通过调用 $createdEvent->getEditLink()->href; 来查询编辑 url;例如:

    // ... All the code to connect to the calendar and create the event
    $createdEvent = $gCal->insertEvent($newEvent);
    $link_gcal = $createdEvent->getEditLink()->href;
    

    希望这可以帮助其他人。享受吧!

    【讨论】:

      猜你喜欢
      • 2014-04-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多