繁体   English   中英

Google 日历 API 条件

[英]Google Calendar API conditionals

我正在尝试在事件列表查询上构建条件,但在此示例中找不到指定 OR 条件的文档:

gapi.client.calendar.events.list({
            'calendarId': 'primary',
            //'timeMin': from_datetime,     // pick everything since we already search by sharedExtendedProperty
            'showDeleted': false,
            'singleEvents': true,
            'maxResults': 100,
            'orderBy': 'startTime',
            **'sharedExtendedProperty': ['createdBy=someapp-alpha', 'createdBy=someapp-beta', 'createdBy=someapp-prod']**
        }).then(
            function (res) {

我希望能够使用 sharedExtendedProperty x OR sharedExtendedProperty y OR sharedExtendedProperty z 查询内容......将这三种可能性添加到数组中没有结果。 所以我猜它正在做一些AND而不是OR。 所以,任何线索????

谢谢 !

无法将OR查询合并到扩展属性的calendar.events.list请求中

你需要手动完成

  • 首先提出 3 个单独的列表请求
  • 随后以编程方式合并结果

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM