通过电子邮件将事件记录添加到Google日历中

时间:2015-10-01 12:25:37

标签: email events calendar notifications

如何发送将添加活动的电子邮件通知。使用this tool我向我的Gmail发送了“活动卡”并收到了一封电子邮件以及有关在我的日历中添加新活动的通知。但是,如果我尝试通过PHP发送这个“事件卡”内容,比我收到一封电子邮件,而不是我日历中的新事件。我做错了什么?

<html>
  <head>
    <script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "EventReservation",
      "reservationNumber": "E123456789",
      "underName": {
        "@type": "Person",
        "name": "Andrii Tarykin"
      },
      "modifiedTime": "2013-11-02T13:15:00-08:00",
      "modifyReservationUrl": "http://gmail-actions.appspot.com/success/{{token}}",
      "reservationStatus": "confirmed",
      "reservationFor": {
        "@type": "Event",
        "name": "Foo Fighters Concert",
        "performer": {
          "@type": "Person",
          "name": "Metallica",
          "image": "http://example.com"
        },
        "startDate": "2015-10-01T13:07:55",
        "location": {
          "@type": "Place",
          "name": "AT&T Park",
          "address": {
            "@type": "PostalAddress",
            "streetAddress": "24 Willie Mays Plaza",
            "addressLocality": "San Francisco",
            "addressRegion": "CA",
            "postalCode": "94107",
            "addressCountry": "US"
          }
        }
      }
    }
    </script>
  </head>
  <body>
    <p>
      This a test for an Event reservation Google Now card in Gmail.
    </p>
  </body>
</html>

此代码对我不起作用,它不会在我的日历中添加事件。

0 个答案:

没有答案