googleworkspace / apps-script-intro-codelab Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
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
I tweaked the script to populate a cell with the mapURL:
function sendMap() {
var sheet = SpreadsheetApp.getActiveSheet();
var address = sheet.getRange('A1').getValue();
var map = Maps.newStaticMap().addMarker(address);
sheet.getRange("A2").setValue(map.getMapUrl());
}
The script works, but the url leads to a page which displays the following html:
The Google Maps Platform server rejected your request. You must use an API key to authenticate each request to Google Maps Platform APIs.
I could not find any info on where to set the Google Maps API key on Google Scripts documentation.
Running sendMap function doesn't do anything; you have to click "Run." for it to work.
Found a small typo in this codelab's documentation.
On https://codelabs.developers.google.com/codelabs/apps-script-intro/#4, in the paragraph below this line of code:
var sheet = SpreadsheetApp.getActiveSheet();
The text and assigns to the value to the variable address.
should be and assigns the value to the variable address.
.
I'd submit a PR, but I don't see the documentation in this repo.
The Script editor has moved to Extensions > Apps Script
Once I run this code I receive this error message and the authorization page is not shown.
6:58:52 PM Warning This project requires access to your Google Account to run. Please try again and allow it this time.
The script editor is no longer under Tools in Google Sheets, but under Extensions -> App Script
Apologies for opening a report here instead of directly for the Codelab in question - I'm not seeing a bug report link there and cannot find the repo either. The code that is used to pull API data in step 7 (https://codelabs.developers.google.com/codelabs/apps-script-fundamentals-4/#6) links to swapi.co, which is now defunct. A fork exists at swapi.dev, and updating the API url to use this value gets the code working again.
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.