【发布时间】:2015-11-30 12:56:03
【问题描述】:
我在日历中创建了 3 个事件,然后运行
response = @client.execute!(
:api_method => @calendar_api.events.list,
:parameters => {
:calendarId => "primary",
:maxResults => 10,
:singleEvents => true,
:orderBy => 'startTime'}
)
我收到了 3 个项目,但在 response.data 上调用的 #next_sync_token 方法返回 nil(#next_page_token 也返回 nil,但在这种情况下它是正确的)。我尝试将 :fields 参数设置为“nextSyncToken”,但仍然没有。我还对这些事件进行了一些更新,#next_sync_token 仍然设置为零..我错了吗?也许我犯了一些错误?
仅在参数中使用calendarId 的调用也是如此。
【问题讨论】:
标签: google-calendar-api google-api-ruby-client