title: Refresh Gmail add-on from promise response
body: <p>I'm trying to refresh a Gmail add-on from a promise result and I can't find the right way to do it. Is it possible, right?</p>
  
  <p>What I'm doing is:</p>
  
  <pre><code>function loadAddOn(event) {
      ...
      retrieveRecipientsInformationFromAPI(emails)
      ...
      ...
      var cards =  new Array(); 
      var card = CardService.newCardBuilder();
      card.setHeader(header);
  
      var sectionFromInformation = CardService.newCardSection()....
      ...
      card.addSection(footer);    
      cards.push(card.build());
      return cards;
  }
  
  function retrieveRecipientsInformationFromAPI(emails) {
     var firstCall = getContactInformationFor(emails);
     var secondCall = getContactImagesFor(emails);
  
     Promise.all([firstCall, secondCall])
         .then(result =&gt; Logger.log(result))    &lt;----- IS THERE ANY WAY TO REFRESH CARDS AT THIS POINT?
         .catch(error =&gt; Logger.log(error))
  } 
  </code></pre>
  
  <p>Any idea how to update cards/addon from this response point? </p>