gmail-addons

Does Google AppScript (GAS) supports O-Auth 2.0 Implicit Grant-Type

本秂侑毒 提交于 2020-01-15 09:32:12
问题 I'm trying to create a new Gmail add-on using Google Apps Script and trying to access third-party, non-Google API. For that I am using O-Auth 2.0 Implicit Grant-Type for authentication. This is how the AuthService looks like : function getOAuthService() { return OAuth2.createService('Podio O-Auth') .setAuthorizationBaseUrl('Base Url') .setTokenUrl('Token Url') .setClientId('clientId') .setClientSecret('clientSecret') .setParam('redirect_uri', 'https://script.google.com/macros/d/' + scriptID +

Test a Gmail Add-on on Gmail Android app?

纵然是瞬间 提交于 2020-01-05 05:54:15
问题 According to Google in their Gmail Add-ons page The contextual cards you create for your add-ons work for both web and mobile versions of Gmail. This means that you don't need to create separate web and mobile versions of the add-on—the same code works everywhere! Note: Gmail add-ons have not yet been added to the iOS version of the Gmail app. So the question here is really simple, I have a add-on that I'm testing on the browser, but how can I test it in the android Gmail app? Thanks in

Request to external api to get authentication token in google appscript

人盡茶涼 提交于 2019-12-25 01:34:35
问题 I am trying to make a call to external api using google Appscript. But i am gettting always error 500.It would be grateful if anyone can help. Request failed for https://demo.overconline.com/api/authenticate returned code 500. Truncated server response: {"message":"error.internalServerError","description":"Internal server error","fieldErrors":null} (use muteHttpExceptions option to examine full response) (line 10, file "Code") function getToken(){ var params ={ "username": "xxxx", "rememberMe

Create a Datepicker Widget in Gmail Add-on

怎甘沉沦 提交于 2019-12-24 08:23:40
问题 I am trying to collect a Date input from the user in a Gmail Add-on, but I don't know how to implement a Datepicker Widget in CardService (the only way to make a Gmail Add-on). If I look at Google's Gmail add-ons, they have such a widget: Any suggestions please on how this can be done ? 回答1: In short: Can't Right now, the only way to create addons is to use CardService. However, CardService lacks certain useful widgets, such as DatePicker, MaskedTextInput, etc. However , default google add

How to initiate a Gmail search from the addon?

匆匆过客 提交于 2019-12-24 08:23:35
问题 I can view the search results through the GmailApp service. Which can be achieved through the following code: var threads = GmailApp.search('from:github'); However, this would not affect the UI, since it is only the add-on performing the query. I would like to perform a search in the add-on and the search results must be seen in the Gmail application. 来源: https://stackoverflow.com/questions/50719814/how-to-initiate-a-gmail-search-from-the-addon

Creating draft email from gmail addon that extends compose UI

梦想的初衷 提交于 2019-12-24 07:58:28
问题 I'm running my gmail add-on with the following scopes: https://mail.google.com/ https://www.googleapis.com/auth/gmail.addons.execute https://www.googleapis.com/auth/gmail.addons.current.action.compose https://www.googleapis.com/auth/gmail.addons.current.message.metadata https://www.googleapis.com/auth/script.external_request I have a button, and corresponding compose action event, that is supposed to read recipient, subject, and body information from some input fields and insert this info

Gmail addon not loading for all messages

折月煮酒 提交于 2019-12-23 03:23:18
问题 I'm programming a gmail addon and it loads as an option for some messages, not for all messages. Ironically, it's not loading for the specific messages I want to use the addon for. I have the following in the application json: { "oauthScopes": [ "https://www.googleapis.com/auth/gmail.addons.execute", "https://www.googleapis.com/auth/gmail.readonly" ], "gmail": { "name": "My Addon", "logoUrl": "https://www.gstatic.com/images/icons/material/system/2x/bookmark_black_24dp.png",

How to fix “Invalid Add-on” error when installing unpublished Gmail addon?

半腔热情 提交于 2019-12-23 01:19:06
问题 I developed a Gmail addon on my personal Google scripts workspace. I didn't have any trouble installing it on my personal Gmail. I haven't published it to the app marketplace yet and I wanted to install (using this method) it on my company's Google Suite email account (I am the administrator of that Google Suite account). However, when I copy the deployment ID and press install I get an error saying "invalid addon". I have made sure that: My work email account has read access to the google

Issues publishing a Gmail Add-on

无人久伴 提交于 2019-12-20 04:56:14
问题 I'm planning to launch a simple Gmail Add-on. I've followed every step in the publishing guide and filled the submission form. However, it's been two weeks now and I've yet to receive any response . Can anyone please tell me how much time does it take for my submission to be reviewed? Or what are the steps to publish a public Gmail Add-on...? The ones in the guide don't seem to work. Also, the guide seems wrong, because it instructs users to first fill in the Marketplace SDK Configuration tab

Permissions error using UrlFetchApp in Gmail Add-on

时间秒杀一切 提交于 2019-12-18 20:04:12
问题 I am just starting to try building a new Gmail Add-on, and am running into the following error message: "You do not have permission to call fetch" This happens when testing the add-on in the Script Editor, and also when deployed inside my Gmail. Here is a sample of the code: function getContextualAddOn(e) { var API_KEY = 'TESTKEY'; var URL = 'https://[REDACTED]'; var options = { 'method' : 'post', 'contentType': 'application/json', 'headers': { 'x-api-key': API_KEY }, 'payload' : JSON