谷歌日历api v3按PHP或Javascript创建时间顺序

时间:2012-01-31 15:29:26

标签: sorting google-calendar-api

如何在Google日历中订购从最新到最旧的活动。我已经阅读了一些文档但是,它似乎没有用。

使用参数:

orderby=created
orderby=updated
orderby=start
orderby=starttime
sortorder=ascending

1 个答案:

答案 0 :(得分:4)

您应该使用singleEvents = True和orderBy = startTime

据我所知,你不能在v3中使用sortOrder。

要按开始时间排序,单个事件必须为true,如下所述: https://code.google.com/apis/calendar/v3/using.html#api_params

祝你好运!