dsf4354353452 2012-10-19 10:02
浏览 15

Google日历 - XML Feed不正确

I am getting a Google Calendar XML Feed with the following code.

My problem is I have 'singleevents=true' set in the URL yet when I actually look at the feed it is showing 24 entries and only one of these is unique, whereas the rest are all a repeat of one event.

In my calendar I have 1 single event and 6 events which each recur weekly.

$api = new clApi('http://www.google.com/calendar/feeds/' . $calendarID .'/public/full?singleevents=true&min-start=' . $now . '&max-start=' .$next_week);

    if ($feed = $api->parse()) {            
        foreach($feed->get('entry') as $entry) {
.....

Is there something I'm doing wrong here?

  • 写回答

1条回答 默认 最新

  • duanli3277 2012-11-10 10:35
    关注

    I think you have the syntax for the parameter backwards. According to the documentation at https://developers.google.com/google-apps/calendar/v2/reference#Parameters : "Valid values are true (expand recurring events) or false (leave recurring events represented as single events). Default is false."

    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度