Skip to content

Instantly share code, notes, and snippets.

@SleeplessByte
Created January 20, 2015 20:07
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/10cb556a371fcb3f269e to your computer and use it in GitHub Desktop.
Save SleeplessByte/10cb556a371fcb3f269e to your computer and use it in GitHub Desktop.
Save (on-click) Action Gmail
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/SaveAction">
<meta itemprop="name" content="Save Offer"/>
<div itemprop="handler" itemscope itemtype="http://schema.org/HttpActionHandler">
<link itemprop="url" href="https://offers-everywhere.com/save?offerId=xyz789"/>
</div>
</div>
<meta itemprop="description" content="$5 meal at Joe's Diner"/>
</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