Skip to content

Instantly share code, notes, and snippets.

@SleeplessByte
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SleeplessByte/d7e16bb75112a7fb8170 to your computer and use it in GitHub Desktop.
Save SleeplessByte/d7e16bb75112a7fb8170 to your computer and use it in GitHub Desktop.
Confirm (one-click) Action Gmail
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ConfirmAction">
<meta itemprop="name" content="Approve XXX"/>
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler">
<link itemprop="url" href="https://SOMEURLTOAPPROVE"/>
</div>
</div>
<meta itemprop="description" content="Approval request for John's $10.13 expense for office supplies OR SOMETHING ELSE"/>
</div>
<!--
description Text Snippet of text describing the contents of the email.
action Action (required) Actions supported for EmailMessage.
action.name Text The string shown to the user on the UI element tied to the action.
action.handler HttpActionHandler (required) Service or Application that may handle the action.
action.handler.url URL (required) URL to the handler that can perform the action.
action.handler.method HttpRequestMethod Whether to use HTTP GET or POST. GET is the default.
action.handler.requiresConfirmation Boolean If true, additional confirmation is required before the handler executes.
publisher Organization The entity responsible for publishing the message. Also accepts a string (e.g. "").
publisher.name Text Name of the Organization.
publisher.url URL URL of the Organization.
publisher.url/googlePlus URL URL of the Google+ Page for the organization.
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment