EventReservation的电子邮件标记无法正常工作

时间:2017-11-15 14:18:06

标签: google-calendar-api schema.org google-schemas

我正在尝试使用Gmail电子邮件标记在Google日历中创建自动事件。从官方指南,我使用以下代码:

<html>
  <body>
<script type="application/ld+json">
{
  "@context":              "http://schema.org",
  "@type":                 "EventReservation",
  "reservationNumber":     "IO12345",
  "underName": {
    "@type":               "Person",
    "name":                "John Smith"
  },
  "reservationFor": {
    "@type":               "Event",
    "name":                "Google I/O 2013",
    "startDate":           "2017-11-16T08:30:00-08:00",
    "location": {
      "@type":             "Place",
      "name":              "Moscone Center",
      "address": {
        "@type":           "PostalAddress",
        "streetAddress":   "800 Howard St.",
        "addressLocality": "San Francisco",
        "addressRegion":   "CA",
        "postalCode":      "94103",
        "addressCountry":  "US"
      }
    }
  }
}
</script>
<p>
  Dear John, thanks for booking your Google I/O ticket with us.
</p>
<p>
  BOOKING DETAILS<br/>
  Reservation number: IO12345<br/>
  Order for: John Smith<br/>
  Event: Google I/O 2013<br/>
  Start time: Nov 16th 2017 8:00am PST<br/>
  Venue: Moscone Center, 800 Howard St., San Francisco, CA 94103<br/>
</p>

但这不起作用。它不会创建一个事件。知道为什么吗?此外,我还在我的日历设置中添加了启用Gmail的自动事件。我在我的日程表上收到了其他自动预订航班事件。

提前致谢!

1 个答案:

答案 0 :(得分:0)

也许您使用的是教育帐户(学校/大学)。尝试使用普通的Gmail帐户。