【问题标题】:how to get google calender events between two dates from google API v3?如何从谷歌 API v3 获取两个日期之间的谷歌日历事件?
【发布时间】:2013-12-13 03:48:12
【问题描述】:

我正在开发日历界面,需要在日历中包含谷歌事件。

我可以通过查询列出事件

https://www.googleapis.com/calendar/v3/calendars/primary/events

但是,需要获取两个日期之间的事件。我发现了类似的问题 this 问题,但他使用的是 javascript 客户端,而我不是。 他正在使用.setTimeMin() 方法来设置日期。

我需要知道应该传递哪些参数来检索两个日期之间的事件。

【问题讨论】:

    标签: google-calendar-api google-oauth google-api-client google-oauth-java-client


    【解决方案1】:

    我从here得到了提示

    参数是timeMin & timeMax,应该像这样使用查询字符串传递

    https://www.googleapis.com/calendar/v3/calendars/primary/events?timeMin=2012-09-30T09:11:13.562Z&timeMax=2012-10-30T09:11:13.562Z
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-03-22
      • 1970-01-01
      相关资源
      最近更新 更多