Google日历活动的#next_sync_token始终返回nil

Jan*_*dło 3 google-calendar-api google-api-ruby-client

我在Calendar中创建了3个事件,然后运行

response = @client.execute!(
   :api_method => @calendar_api.events.list,
   :parameters => {
     :calendarId => "primary",
     :maxResults => 10,
     :singleEvents => true,
     :orderBy => 'startTime'}
 )
Run Code Online (Sandbox Code Playgroud)

我收到3个项目但是#next_sync_token调用的方法response.data返回nil(#next_page_token也返回nil,但在这种情况下它是正确的).我试着将:fields参数设置为"nextSyncToken",但仍然没有.我也对这些事件做了一些更新,但#next_sync_token仍然没有.我错了吗?也许我犯了一些错误?仅使用calendarIdin参数的调用也是如此.

小智 11

摆脱秩序.这没有记录,但是如果您尝试使用Google API,则会看到orderSy:startTime不会返回nextSyncToken.

在同一个问题上浪费了很多时间.