gpt4 book ai didi

google-calendar-api - #next_sync_token fo Google Calendar Events 总是返回 nil

转载 作者:行者123 更新时间:2023-12-01 07:54:19 24 4
gpt4 key购买 nike

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

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

我收到了 3 件商品,但 #next_sync_token调用的方法 response.data返回零(# next_page_token 也返回零,但在这种情况下它是正确的)。我试图将 :fields 参数设置为“nextSyncToken”,但仍然没有。我还对这些事件进行了一些更新和 #next_sync_token仍然设置为零..我错了吗?也许我犯了一些错误?
电话只用 calendarId在参数中做同样的事情。

最佳答案

摆脱orderBy。这没有记录在案,但如果您尝试使用 Google API,您会看到 nextSyncToken 没有与 orderBy: startTime 一起返回。

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

关于google-calendar-api - #next_sync_token fo Google Calendar Events 总是返回 nil,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33999179/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com