简体   繁体   English

EventReservation的电子邮件标记不起作用

[英]Email markup for EventReservation not working

I'm trying to use the Gmail Email Markup to create an automatic event in Google Calendar. 我正在尝试使用Gmail电子邮件标记在Google日历中创建自动事件。 From the official guide, I'm using the below code: 在官方指南中,我使用以下代码:

<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>

But this is not working. 但这是行不通的。 It isn't creating an event. 它不是在创建事件。 Any idea why? 知道为什么吗? Also, I have add automatic events from Gmail enabled in my Calendar settings. 另外,我在日历设置中启用了来自Gmail的自动事件添加功能。 I'm getting other automatic events of flight bookings on my calendar. 我的日历上还有其他的航班预订自动事件。

Thanks in advance! 提前致谢!

Maybe you are using an educational account (school / university). 也许您使用的是教育帐户(学校/大学)。 Try it with a regular gmail account. 尝试使用常规的Gmail帐户。

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

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