dongse5408 2015-01-05 14:26
浏览 58

使用google-api-php-client查找事件开始和结束日期的方法是什么

I'm trying to get data from an event using google-api-php-client. Particulary the starting and ending date of the event.

I have tried

foreach ($event->when as $when) { ...

but nothing.

Impossible to find the documentation of google-api-php-client with all the methods. Does somebody has a link?

  • 写回答

2条回答 默认 最新

  • drmg17928 2015-01-05 14:36
    关注

    There is no way of requesting just a set of events based upon a time frame. Your best bet is to just get them all then loop though them yourself. ListEvents

    $events = $service->events->listEvents('primary');
    

    Note There is a q option for searching but I don't think it works for dates. I would have to test it

    Free text search terms to find events that match these terms in any field, except for extended properties. Optional.

    Most of the methods have php code in the documentation Google Calendar API Refrence

    评论

报告相同问题?

悬赏问题

  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥30 自适应 LMS 算法实现 FIR 最佳维纳滤波器matlab方案
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行
  • ¥15 Python3.5 相关代码写作
  • ¥20 测距传感器数据手册i2c
  • ¥15 RPA正常跑,cmd输入cookies跑不出来
  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动