事件预订在Gmail电子邮件标记中不起作用

时间:2019-08-19 12:20:08

标签: google-schemas

我正在尝试使用Gmail电子邮件标记的事件保留功能。使用以下摘自https://developers.google.com/gmail/markup/reference/event-reservation的脚本。我收到的是普通电子邮件,没有什么特别之处可与其他电子邮件区分开。

<html>
  <head>   
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "EventReservation",
  "reservationNumber": "E123456789",
  "reservationStatus": "http://schema.org/Confirmed",
  "underName": {
    "@type": "Person",
    "name": "John Smith"
  },
  "reservationFor": {
    "@type": "Event",
    "name": "Foo Fighters Concert",
    "performer": {
      "@type": "Organization",
      "name": "The Foo Fighters",
      "image": "http://www.amprocktv.com/wp-content/uploads/2027/01/foo-fighters-1-680x383.jpg"
    },
    "startDate": "2019-08-20T19:30:00-08:00",
    "location": {
      "@type": "Place",
      "name": "AT&T Park",
      "address": {
        "@type": "PostalAddress",
        "streetAddress": "24 Willie Mays Plaza",
        "addressLocality": "San Francisco",
        "addressRegion": "CA",
        "postalCode": "94107",
        "addressCountry": "US"
      }
    }
  },
  "venueSeat": "12",
  "venueRow": "A",
  "venueSection": "101",
  "ticketToken": "qrCode:AB34",
  "ticketNumber": "abc123"
}
</script>
  </head>
  <body>
    This a test for event action in Gmail.
  </body>
</html>

我已经使用我的gmail帐户尝试了相同的发送者和接收者,并且还尝试了使用https://script.google.com的相同代码,但是没有运气。

https://developers.google.com/gmail/markup/apps-script-tutorial中给出的“查看操作”示例运行良好。使用https://script.google.com,但不用于我的.net项目。 请帮忙!

0 个答案:

没有答案