2013-06-03 68 views
1

我正在使用Apps腳本教程(通過發送給我自己的電子郵件)測試操作,但目前只顯示「轉至」操作。這是我用來生成確認操作的代碼,我做錯了什麼?Gmail確認操作(和推出計劃)

<script type="application/ld+json">{ 
    "@context": "http://schema.org", 
    "@type": "EmailMessage", 
    "description": "Retry fax sending", 
    "action": { 
     "@type": "ConfirmAction", 
     "name": "Retry", 
     "handler": { 
      "@type": "HttpActionHandler", 
      "url": "http://example.com/do/ba98262b-6eb9-4314-a01a-8ff3076821e3" 
      "method": "POST" 
     } 
    } 
} 

順便說一句,有什麼地方可以檢查Gmail Actions的推出狀態嗎?例如,我的Google Apps帳戶不會顯示任何操作,而我的「標準」Gmail帳戶則可以。

回答

0

你只是缺少handler.url財產後一個逗號,這是正確的標記:

<script type="application/ld+json"> 
{ 
    "@context": "http://schema.org", 
    "@type": "EmailMessage", 
    "description": "Retry fax sending", 
    "action": { 
     "@type": "ConfirmAction", 
     "name": "Retry", 
     "handler": { 
      "@type": "HttpActionHandler", 
      "url": "http://example.com/do/ba98262b-6eb9-4314-a01a-8ff3076821e3", 
      "method": "POST" 
     } 
    } 
} 
</script> 

您可以使用模式驗證工具檢查您的標記語法錯誤是這樣的:https://developers.google.com/gmail/schemas/testing-your-schema

轉到和一鍵式操作已啓動,而Review和RSVP尚未啓動。請跟蹤Release Notes頁面以獲取所有更新。

有關Google Apps帳戶的問題,請注意,域管理員決定他們想要成爲哪個曲目的一部分,並在他們獲得新功能時進行控制。

+0

謝謝Claudio! –