2016-12-14 77 views
1

我開發了我的gmail小工具來查找發件人電子郵件並將其添加到數據庫中。很高興我能夠在電子郵件底部看到我的小工具,並且還能夠從google.I調用我的web Api創建Chrome網店應用程序。我做了一些部分,現在它工作正常。但我想知道我必須遵循哪些步驟才能做到這一點?Chrome網上應用店清單

這裏是我的gadget.xml:

<?xml version="1.0" encoding="UTF-8"?> 
<Module>`enter code here` 
    <ModulePrefs title="Test Gadget" 
    description="" 
    height="20" 
    author="excendia" 
    author_email="..." 
    author_location=""> 

    <!-- Declare feature dependencies. --> 

    <!-- This one is not specific to Gmail contextual gadgets. --> 
    <Require feature="dynamic-height"/> 

    <!-- The next feature, Caja, is optional, and is supported for 
    use only within test domains. Uncomment the tag only for 
    non-production gadgets. --> 
    <!-- <Require feature="caja"/> --> 

    <!-- The next feature, google.contentmatch, is required for all 
    Gmail contextual gadgets. 
    <Param> - specify one or more comma-separated extractor IDs in 
    a param named "extractors". This line is overridden by the extractor ID 
    in the manifest, but is still expected to be present. --> 
    <Require feature="google.contentmatch"> 
     <Param name="extractors"> 
     google.com:MessageIDExtractor 
     </Param> 
    </Require> 

    </ModulePrefs> 

    <!-- Define the content type and display location. The settings 
    "html" and "card" are required for all Gmail contextual gadgets. --> 
    <Content type="html" view="card"> 
    <![CDATA[ 
     <script type="text/javascript"> 

     <!-- Fetch the array of content matches. --> 
     matches = google.contentmatch.getContentMatches(); 
     var matchList = document.createElement('UL'); 
     var listItem; 
     var extractedText; 

     <!-- Iterate through the array and display output for each match. --> 
     for (var match in matches) { 
      for (var key in matches[match]) { 
      listItem = document.createElement('LI'); 
      extractedText = document.createTextNode(key + ": " + matches[match][key]); 
      listItem.appendChild(extractedText); 
      matchList.appendChild(listItem); 
      } 
     } 
     document.body.appendChild(matchList); 
     gadgets.window.adjustHeight(100); 
     </script> 
    ]]> 
    </Content> 
</Module> 

回答

1

您可以找到步驟創建Chrome網上應用店here

相關問題