问题描述
我正在尝试检索有关已创建的日历事件的日志,并在其标题中包含特定字符串。 我看到有一个选项可以使用参数和关系运算符将过滤器添加到请求中。 例如,这就是我发现所有创建的事件均具有以下确切标题的方式:“ test”:
service = build('admin','reports_v1',credentials=g_creds)
listEvents = service.activities().list(applicationName='calendar',userKey='all',eventName="create_event",filters="event_title==test").execute()
但是我不知道是如何检索所有包含随机字符串的事件。 文档中提到的唯一运算符是:
== - 'equal to'.
<> - 'not equal to'. It is URL-encoded (%3C%3E).
< - 'less than'. It is URL-encoded (%3C).
<= - 'less than or equal to'. It is URL-encoded (%3C=).
> - 'greater than'. It is URL-encoded (%3E).
>= - 'greater than or equal to'. It is URL-encoded (%3E=).
来源:
-活动“列表” api:https://developers.google.com/admin-sdk/reports/v1/reference/activities/list
-Calendar Reports API: https://developers.google.com/admin-sdk/reports/v1/appendix/activity/calendar#create_event
一些帮助将不胜感激! 提前致谢! :)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)