简体   繁体   English

如何在Google Calendar API V3 Java中使用setQ()方法

[英]How to use setQ() method in google calendar api v3 java

Can someone give me an example on how to use the setQ() method on google calendar v3 api for calendar events in Java? 有人可以给我一个示例,说明如何在Java日历事件中使用Google Calendar v3 api上的setQ()方法吗? I try the setQ() method in google drive and it's worked fine, so I want to know how to do the same thing in google calendar events. 我尝试在Google驱动器中使用setQ()方法,效果很好,所以我想知道如何在Google日历事件中执行相同的操作。

So for example, I have an event description in my 'primary' calendar that contains the word 'event test' and I want to retrieve all events in this 'primary' calendar that has its description contains the word 'event test'. 因此,例如,我在“主”日历中有一个包含“事件测试”一词的事件描述,我想在此“主”日历中对其描述中包含“事件测试”一词的所有事件进行检索。 Because I want to avoid looping all the hundreds or thousands of events in my calendar to find a specific event. 因为我要避免循环遍历日历中的所有成百上千个事件来查找特定事件。

Thanks. 谢谢。

事件feed = client.events()。list(“ calendarId”)。setQ(“ search text”)。execute();

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

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