2016-12-14 111 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

相关问题