gmail-addons

Gmail AppScript mailMessage.getFrom() to return email not name

喜夏-厌秋 提交于 2021-02-17 03:59:08
问题 Similar to: Getting only email address to display when using message.getFrom() in JavaMail but could not apply the solution. Trying to use mailMessage.getFrom() on Google AppScript with Gmail. Default script: function loadAddOn(event) { var accessToken = event.messageMetadata.accessToken; var messageId = event.messageMetadata.messageId; GmailApp.setCurrentMessageAccessToken(accessToken); var mailMessage = GmailApp.getMessageById(messageId); var from = mailMessage.getFrom(); var openDocButton

Gmail AppScript mailMessage.getFrom() to return email not name

假如想象 提交于 2021-02-17 03:58:49
问题 Similar to: Getting only email address to display when using message.getFrom() in JavaMail but could not apply the solution. Trying to use mailMessage.getFrom() on Google AppScript with Gmail. Default script: function loadAddOn(event) { var accessToken = event.messageMetadata.accessToken; var messageId = event.messageMetadata.messageId; GmailApp.setCurrentMessageAccessToken(accessToken); var mailMessage = GmailApp.getMessageById(messageId); var from = mailMessage.getFrom(); var openDocButton

How to delete User Property Services when User deletes G-Suite Add-on

吃可爱长大的小学妹 提交于 2021-02-11 17:05:54
问题 I'm developing a G-Suite add-on that is storing user auth tokens for an external API within User Property Services as Google recommends. I'm planning to implement the OAuth2 Service as well for publication purposes. My assumption would be that when a user deletes an add-on, the property services associated with that user (and thereby their auth tokens) are deleted as well. However, I haven't found any documentation that says Google deletes a users property services storage when a user

How to delete User Property Services when User deletes G-Suite Add-on

雨燕双飞 提交于 2021-02-11 17:05:41
问题 I'm developing a G-Suite add-on that is storing user auth tokens for an external API within User Property Services as Google recommends. I'm planning to implement the OAuth2 Service as well for publication purposes. My assumption would be that when a user deletes an add-on, the property services associated with that user (and thereby their auth tokens) are deleted as well. However, I haven't found any documentation that says Google deletes a users property services storage when a user

Is it still possible to publish a Gmail addon?

 ̄綄美尐妖づ 提交于 2021-02-10 05:35:39
问题 I've been trying to publish a Gmail add-on for half a year now. But I can't submit it, because the required option is disabled: I've seen the other postings about this and registered at the doc and the issue tracker, but got no response at all. Did I make a configuration mistake, causing the option the be disabled? Or is it simply not possible any more to publish Gmail add-ons? (Sorry, I'm not sure if this is the right place to ask, but the official Google pages do link here...) 回答1: From the

Obtain an id token in the Gmail add-on for a backend service authentication

ⅰ亾dé卋堺 提交于 2021-02-07 06:11:56
问题 The background I'm using the Google Apps Script to create a Gmail Add-on. Via this plugin, I would like to connect to my backend server (a non-Google service) using a REST service request. The request has to be authorised. When authorised, I could then make requests to that server to receive data associated with that user in the database. I'm already using Google sign-in in my webapp to sign in to the backend service - at the front end, I receive the id_token inside of the GoogleUser object

Obtain an id token in the Gmail add-on for a backend service authentication

浪子不回头ぞ 提交于 2021-02-07 06:11:18
问题 The background I'm using the Google Apps Script to create a Gmail Add-on. Via this plugin, I would like to connect to my backend server (a non-Google service) using a REST service request. The request has to be authorised. When authorised, I could then make requests to that server to receive data associated with that user in the database. I'm already using Google sign-in in my webapp to sign in to the backend service - at the front end, I receive the id_token inside of the GoogleUser object

Obtain an id token in the Gmail add-on for a backend service authentication

为君一笑 提交于 2021-02-07 06:09:12
问题 The background I'm using the Google Apps Script to create a Gmail Add-on. Via this plugin, I would like to connect to my backend server (a non-Google service) using a REST service request. The request has to be authorised. When authorised, I could then make requests to that server to receive data associated with that user in the database. I'm already using Google sign-in in my webapp to sign in to the backend service - at the front end, I receive the id_token inside of the GoogleUser object

How can I add new sections to an existing card on Gmail Addon?

半世苍凉 提交于 2021-02-05 09:38:07
问题 I'm actually trying to create a Chat interface in Gmail using Add-ons with App Script. All the interactions are working. But it keeps navigating to different cards rather than have it all in one card. Like in Google Tasks. Is there a way in which I can just keep adding sections to the same card dynamically to create a chat like interface. I assume if it is possible on Google Tasks Add-on it should be possible in this case too. Please help me out as it is a necessary requirement. 回答1: Update :

Gmail Add-on pass parameters to function triggered by card action

醉酒当歌 提交于 2021-02-04 08:36:23
问题 I'm building a Gmail add-on that creates a card with just one form button. Once clicked, I want the button to trigger a function that will send the open email's content to an external API. So far, I have something like this: function createCard(event) { var currentMessage = getCurrentMessage(event).getBody(); var section = CardService.newCardSection(); var submitForm = CardService.newAction() .setFunctionName('callAPI'); var submitButton = CardService.newTextButton() .setText('Submit')