dancrew32 / marcel

The PHP 5.4 MVC with Shoes On: ActiveRecord, User/Session, Generators, SCSS, (Twitter Bootstrap) Integration, Workers, Cron Management, Image Manipulation, Caching, Git Management, Mail & Mail Parsing, OCR, Scraping, Selenium, Mustache, Markdown, Phone & Text Messaging, WebSockets, BitTorrent and much more!
5 stars 0 forks source link

gmail actions interface #137

Open dancrew32 opened 10 years ago

dancrew32 commented 10 years ago

https://developers.google.com/gmail/schemas/

Need to register app: https://developers.google.com/gmail/schemas/registering-with-google

Maybe build something that helps users boilerplate "verify" their email systems per the verification guidelines: https://developers.google.com/gmail/schemas/registering-with-google

Emails must come from a static email address, eg foo@bar.com so config::$setting['admin_email']

Emails must follow general email guidelines

You should make a browser (selenium) script that automates filling out this form per test email: https://docs.google.com/forms/d/1PA-vjjk3yJF7MLPOVKbIz3MBfhyma2obS8NIZ0JYx8I/viewform?pli=1

Go To Action

https://developers.google.com/gmail/schemas/actions/declaring-actions#go-to_actions

<div itemscope itemtype="http://schema.org/Event">
  <meta itemprop="name" content="John's Birthday Party"/>
  ... information about the event ...
  <div itemprop="action" itemscope itemtype="http://schema.org/RsvpAction">
    <meta itemprop="url" content="https://events-organizer.com/rsvp?eventId=123"/>
  </div>
</div>

In App Actions

https://developers.google.com/gmail/schemas/actions/declaring-actions#in-app_actions

<div itemscope itemtype="http://schema.org/Event">
  <meta itemprop="name" content="John's Birthday Party"/>
  ... information about the event ...
  <div itemprop="action" itemscope itemtype="http://schema.org/RsvpAction">
    <div itemprop="actionHandler" itemscope itemtype="http://schema.org/HttpActionHandler">
      <meta itemprop="url" content="https://events-organizer.com/rsvp?eventId=123"/>
      <link itemprop="method" href="http://schema.org/HttpRequestMethod/POST"/>
      <div itemprop="requiredProperty" itemscope itemtype="http://schema.org/Property">
        <meta itemprop="name" content="rsvpStatus"/>
      </div>
    </div>
  </div>
</div>

Requests look like this

POST /rsvp?eventId=123 HTTP/1.1
Host: events-organizer.com
Authorization: Bearer AbCdEf123456
Content-Type: application/x-www-form-urlencoded

rsvpStatus=YES

Maybe test with "confirm subscription" email.

Go-To Actions: Must deep link into the specific page on which the action can be performed. Label of button needs to reflect clear action to be taken and must be true to page the user is going to Label of action should not contain punctuation or all caps. Must be short and concise.

In App actions get approved, Go To's are difficult. Goto's must be "Flight Check-in, Shipment tracking links"