email - 事件电子邮件 - 谷歌日历自动接受

标签 email google-calendar-api

我想知道航空公司、邀请人和大型事件如何创建专门针对该事件格式化的电子邮件,如下所示:

enter image description here

并且还会自动将此事件添加到 Google 日历中。

任何人都可以指导我有关所用方法的任何教程或解释吗? 我无休无止地寻找,却一无所获。

最佳答案

您所描述的是在电子邮件中添加一些标记的结果:https://developers.google.com/gmail/markup/getting-started

示例事件:

<script type="application/ld+json"> [ {
  "@context": "http://schema.org/",
  "@type": "EventReservation",
  "reservationnumber": "9454as",
  "reservationfor": {
    "image": "whatever image url",
    "name": "My event",
    "@type": "Event",
    "enddate": "2016-01-06T20:00:00+00:00",
    "startdate": "2016-01-06T17:00:00+00:00",
    "location": {
      "name": "11th Street",
      "@type": "Place"
    } } } ] </script>

在此之前,请确保执行此处描述的注册步骤: https://developers.google.com/gmail/markup/registering-with-google

关于email - 事件电子邮件 - 谷歌日历自动接受,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35002660/

相关文章:

android - 使用 sdk android 从 gmail 发送和接收电子邮件

php - 如何使用 Google 的 "Simple API Access key"访问 Google 日历信息 (PHP)?

python - 在创建之前验证谷歌事件是否已经存在

javascript - 无法刷新 access_token - google calendar api

javascript - 如何保护 native 函数不被 Google API 覆盖

java - 运行远程服务器时无法使用 Java 代码发送电子邮件

android - 如何样式化 (CSS) 由 Android 应用程序 (Intent) 创建的电子邮件的 HTML 正文?

python - 如何使用 django 发送异步电子邮件

email - mailto crontab 不起作用

javascript - 无法在 JavaScript 中使用 Google 日历 (v3) API 中的 OAuth 2.0 进行身份验证