python - 在使用 iCalUID “导入”日历后,在“events.update()”功能上使用 Google Calendar API 向“与会者”发送通知时出现问题?
问题描述
在使用 iCalUID “导入”日历后,使用“events.update()”函数的 Google Calendar API 不会向“参加者”发送通知
仅供参考 - old_event 是service.events().get() response instance
从不同邮件地址 abc@gmail.com 中的事件中捕获的“”。
new_event = old_event.copy()
new_event['organizer'] = {
'self': True,
'email': 'xyz@gmail.com'
}
imported_event = new_service.events().import_(
calendarId='primary',
body=new_event
).execute()
updated_event_body = imported_event.copy()
updated_event_body['summary'] = 'New Summary'
updated_event = new_service.events().update(
calendarId='primary',
eventId=updated_event_body['id'],
sendNotifications=True,
body=updated_event_body
).execute()
请使用此链接在 Pastebin 上找到代码片段
解决方案
推荐阅读
- node.js - 使用 Mongoose 分页进行随机洗牌
- python-sphinx - 如何使用 sphinx 在自动模块中指定 __all__ 的部分成员
- solr - 是否支持使用 schema.xml 添加新字段?
- python - 使用 sqlalchemy 和 df.to_sql() 方法批量更新 postgresql 中的选择性列
- google-apps-script - 将 cUrl 源转换为 Google App 脚本
- python - 捕获异常并更改变量参数
- list - 如何获取 github webhook 事件列表
- java - 用 itext 提取 pdf 的文本
- android - 为什么从 C++ 源目标 android 构建的静态库非常大
- javascript - Firebase 数据库安全规则中的未指定索引警告