googleworkspace / add-ons-samples Goto Github PK
View Code? Open in Web Editor NEWSample Google Workspace Add-ons
Home Page: https://developers.google.com/gmail/add-ons
License: Apache License 2.0
Sample Google Workspace Add-ons
Home Page: https://developers.google.com/gmail/add-ons
License: Apache License 2.0
Like our hangouts chat samples.
Already filed a bug, but got no answer. (https://issuetracker.google.com/issues/77504617)
Now I even get the same problem on the web, not only on Android.
I have seen this consistently on Android, but now it also happens consistently on the Chrome on the desktop.
Hi, I'm new with Addons
When click on Settings and on Schedule a Meeting I get the same error. I need help because I don't know why. Is any library required?
ReferenceError: _ not defined.
Stack trace
at Settings:115 (cachedPropertiesForUser_)
at Settings:34 (getSettingsForUser)
at ActionHandlers:177
at Main:103 (dispatchActionInternal)
at Main:65 (handleShowSettings)
Code at line 115 in Settings.js:
return _.assign(Object.create(cachedPropertiesPrototype), {
properties: PropertiesService.getUserProperties(),
cache: CacheService.getUserCache()
});
Hey,
I did all the necessary step to install the add on on Gmail, but when i change the client secret and client id of the git hub account in my script properties, suddenly my add on got disappeared.
If i go to the setting I can still see that the add on is installed , but its not showing in my side pane.
PS I am new to creating add on, any leads will be appreciated.
git clone https://github.com/googlesamples/add-ons-samples.git
should read
git clone https://github.com/gsuitedevs/add-ons-samples.git
C:\Users\Freddy\Desktop\gmail add-on ([email protected])
λ clasp deployments
2 Deployments.
Gmail Shows
Invalid developer add-on. Please ensure the ID is correct and that your account has permission to access the add-on
I'm providing ID used by @Head
Hi
I wonder if you can help me here, I read that you can send parameters with actions when building & pushing a new card using the navigation, but what is the best way to send data back to the previous card say when you do popCard()
Thank you
Alex
Regarding Meeting assistant
If i click FIND TIMES button
I got toast like this "No times available for selected participants"
[gmail-add-ons] tag in StackOverflow is wrong. Change to [gmail-addons] in your link
@sqrrrl "* Stack Overflow: tag questions with gmail-addons
"
Schedule email does not send auto email o Scheduled timings
Is it possible to leverage a JWT-based authentication flow for GMail addons vs. an OAuth2 authorization service?
In file qr-code/src/main.js
Line 116: variable content should be html.
The variable html is declared on line 114, but never used. Code is broken as is, but changing the variable to html fixes the Addon.
I got error by clicking find times button i got this error. Am i did anything wrong here?
GoogleJsonResponseException: The specified time range is empty.
Stack trace
at Code:33654
at Code:33612
at Code:34193
at Code:34419 (dispatchActionInternal)
at Code:34391 (dispatchAction)
Here's code from my gulp file to build Code.gs
const gulp = require('gulp');
const exec = require('child_process').exec
const concat = require('gulp-concat');
const clean = require('gulp-clean');
const src = [
'./src/lib/*/*.js',
'./src/Views.js',
'./src/Settings.js',
'./src/TimePeriod.js',
'./src/Scheduler.js',
'./src/MessageUtils.js',
'./src/DeadlineMonitor.js',
'./src/ActionHandlers.js',
'./src/Main.js'
];
gulp.task('build-src', function() {
return gulp.src(src)
.pipe(concat('Code.gs'))
.pipe(gulp.dest('./dist'));
});
In the gmail app on iPhone, when reading an email, clicking the cat-paw icon produces the following error:-
URL: 'https://cataas.com/' does not match any of the prefixes whitelisted for use in the add-on.
It works OK in Chrome on a PC though, suggesting this is a problem with the core iPhone runtime, rather than the script/manifest?
I tried adding this, which didn't fix or change anything:-
"urlFetchWhitelist": [
"https://cataas.com/",
"https://cataas.com/cat",
"https://cataas.com/cat/says"
],
Add-on is error, no add-on data return, This message is only show in developer mode.
\
After doing a git pull
and clasp push
, I'm getting the error SyntaxError: Invalid quantifier ?
when trying to open the add-on. Reverting 7d0f4f2 seems to resolve the issue. I'm not sure what (?<!<)
or (?!>)
are trying to do, but that seems to be where the error is located.
Are there best practices around input field validations?
Sign in with Google temporarily disabled for this app
This app has not been verified yet by Google in order to use Google Sign In.
The lorem-ipsum sample README is outdated:
1.-The git clone address is incorrect
Current: git clone https://github.com/googlesamples/add-ons-samples.git
Correct: git clone https://github.com/googleworkspace/add-ons-samples.git
2.-Sample directory is also incorrect
Current: add-ons-samples/lorem-ipsum
Correct: add-ons-samples/apps-scripts/lorem-ipsum
Failed to validate the config schema at '.github/sync-repo-settings.yaml': [
{
"instancePath": "/permissionRules/1/permission",
"schemaPath": "#/properties/permissionRules/items/properties/permission/enum",
"keyword": "enum",
"params": {
"allowedValues": [
"pull",
"push",
"admin"
]
},
"message": "must be equal to one of the allowed values"
}
]
Schema can be found at https://github.com/googleapis/repo-automation-bots/blob/main/packages/sync-repo-settings/src/schema.json
Howdy. In your replication instructions, after we're told to use clasp to create the "Meeting Assistant" project, clasp will ask us which kind of project to create
? Clone which script? ❯ standalone docs sheets slides forms webapp api
This isn't specified in the instructions, but it should be. Thanks!
Gulp file for meeting assistant not building real source code it's just build third party dependencies only.
The error message returned in the API response is Field 'contributedRepositories' doesn't exist on type 'User'
. It looks like that field was deprecated a while back and the code needs to switch to using repositoriesContributedTo
instead.
Hi,
I am seeing the following issue not sure why. Please help me in resolving it.
An unexpected error occurred
GoogleJsonResponseException: Project 310354644286 is not found and cannot be used for API calls. If it is recently created, enable Calendar API by visiting https://console.developers.google.com/apis/api/calendar.googleapis.com/overview?project=310354644286 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
Stack trace
at Settings (Views):24 (getUserTimezone)
at ActionHandlers (Views):33
at Main (Views):103 (dispatchActionInternal)
at Main (Views):53 (handleShowScheduler)
Howdy. I'm not able to replicate the github project. When I attempt to run npm build, I get the following error:
`
FunkBook-Pro:github pdavisjones$ npm run build
[email protected] build /Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github
gulp
fs.js:25
'use strict';
^
ReferenceError: internalBinding is not defined
at fs.js:25:1
at req_ (/Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github/node_modules/natives/index.js:137:5)
at Object.req [as require] (/Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github/node_modules/natives/index.js:54:10)
at Object. (/Users/pdavisjones/Documents/Coding/apps-script/gmail-add-ons-samples/github/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:816:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
at Module.load (internal/modules/cjs/loader.js:685:32)
at Function.Module._load (internal/modules/cjs/loader.js:620:12)
at Module.require (internal/modules/cjs/loader.js:723:19)
at require (internal/modules/cjs/helpers.js:14:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: gulp
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pdavisjones/.npm/_logs/2019-05-16T20_48_36_612Z-debug.log
`
When I use the New V8 JavaScript runtime in AppsScript I get the error
TypeError: CardService.newAction(...).setFunctionName(...).setLoadIndicator(...).setPersistValues is not a function [line: 281, function: buildSearchCard_, file: Code]
When I use the legacy runtime I get the error:
TypeError: Cannot find function setPersistValues in object Action. [line: 278, function: buildSearchCard_, file: Code]
If I remove this function (setPersistValues). Everything works fine.
While the structure of the code is useful for large scale add-ons, likely overkill for samples. Simplify the code to improve readability of the add-ons.
Steps to reproduce
Settings
-> Disconnect Account
Settings
screen.Hello!
I'm trying to build my custom addon with some third party libraries as well. I have followed all the steps pretty well (thank you again for this sample very interesting!).
Unfortunately, when running the addon in my Gmail, google executes the gulp.js
:/
Hence my questions:
node_modules
and the result of the npm run build
?npm run build
locally, I have no dist
folder created (but there is no error).I'm kind of confused as you can see on the deployment, execution in general of google app script when using third party libraries. Would you be ok to help me on this?
Thank you very much!
Instead of
cd gmail-add-ons-samples/github
Needs to be
cd gmail-add-ons-samples/meeting-assistant
cd gmail-add-on-samples/github
should be:
cd gmail-add-ons-samples/github
In File: Add-ons-samples/team-list/src/main.js (line 269) ".setPersistantValue(true)" is not a valid parameter, nor documented anywhere. Removing it allows code to run.
Noticed that if a link appears as part of the text of an email instead of in a href attribute it may contain HTML markup. Specifically, gmail may insert <wbr> tags. Users might also apply formatting which could affect things.
Need to update extractGitHubLinksFromText_ to sanitize the extracted strings and strip any HTML markup. This should be compatible with GitHub's naming rules which appear to disallow <> in owner/project names.
The Disconnect account flow doesn't work in the GitHub add-on if you don't sign in with another GitHub account.
Repro:
Expected:
The GitHub account is disconnected and you'll be prompted to log in again.
Actual:
The GitHub account isn't disconnected.
Name and url whitelist are incorrect in the appscript > lorem-ipsum > appscript.json file.
Should be lorem ipsum instead of qr code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.