从Gmail API收件箱操作中识别用户的电子邮件地址

时间:2014-08-07 17:50:23

标签: inbox gmail-api google-schemas

有没有办法简单地从INBOX ACTION中识别并返回用户的电子邮件地址。

E.G

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "ConfirmAction",
  "name": "My Birthday Party",
  ... information about the event ...
  "action": {
    "@type": "RsvpAction",
    "actionHandler": {
      "@type": "HttpActionHandler",
      "url": "https://mysite.com/rsvp?email_address=USERS'S EMAIL ADDRESS HERE",
      "method": "POST",
      "requiredProperty": "rsvpStatus",
    }
  }
}
</script>

我们的组织使用Gmail帐户的所有用户都不需要生成额外的标识符来代替上面链接中显示的“email_address = USERS'S EMAIL ADDRESS HERE”,因为我们已经将他们的电子邮件地址存档了。

谢谢。

1 个答案:

答案 0 :(得分:1)

不,这不受支持。您需要在发送电子邮件时设置该电子邮件地址参数,或使用限制使用的访问令牌,如下所述:https://developers.google.com/gmail/actions/actions/limited-use-access-tokens

相关问题