質問

I'm trying to implement One-Click Actions for Gmail using a 'Confirm Action'. The developer page specifies a 'requiresConfirmation' option [if true, additional confirmation is required before the handler executes]. I tried setting this to 'true', but didn't work.

How is this supposed to work? I'm using the following markup

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "EmailMessage",
  "description": "Verify your email address",
  "action": {
    "@type": "ConfirmAction",
    "name": "Verify Email Address",
    "handler": {
      "@type": "HttpActionHandler",
      "url": "https://mywebsite.com/verify?email=info@mywebsite.com",
      "requiresConfirmation": true
    }
  }
}
</script>

The schema validates at Schema Validator. Any help would be appreciated. The above code works otherwise.

役に立ちましたか?

解決

The requiresConfirmation flag is not supported yet. I'll make sure the documentation is updated to reflect the current status.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top