googleworkspace / slides-api Goto Github PK
View Code? Open in Web Editor NEWLearn How to Use the Google Slides API
Home Page: https://codelabs.developers.google.com/codelabs/slides-api
License: Apache License 2.0
Learn How to Use the Google Slides API
Home Page: https://codelabs.developers.google.com/codelabs/slides-api
License: Apache License 2.0
in auth.js:
If the TOKEN_DIR exists, the error will always be thrown and the token will never be stored.
function storeToken(token) {
try {
fs.mkdirSync(TOKEN_DIR);
fs.writeFileSync(TOKEN_PATH, JSON.stringify(token));
} catch (err) {
if (err.code != 'EEXIST') return err;
}
console.log('Token stored to ' + TOKEN_PATH);
}
Should be:
function storeToken(token) {
try {
fs.mkdirSync(TOKEN_DIR);
} catch (err) {
if (err.code != 'EEXIST') return err;
}
try {
fs.writeFileSync(TOKEN_PATH, JSON.stringify(token));
} catch (err) {
return err;
}
console.log('Token stored to ' + TOKEN_PATH);
}
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'm getting an error when I run the project on Step 8:
Enter the code from that page here: events.js:183
throw er; // Unhandled 'error' event
^
Error: spawn xdg-open ENOENT
at _errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)
(I think this has to do with how I created an OAuth2 Client (Step 5). I have a similar issue at that point in my SPL - I was looking at the codelab to see if you guys had the fix.)
Google slides api returns a response from the slides.presentations.get
endpoint that, if there is an image in the slide, contains image metadata in the pageElements
object"
{
contentUrl: 'https://lh5.googleusercontent.com/8///LONG HASH///',
imageProperties: {
outline: {
outlineFill: [Object],
weight: [Object],
dashStyle: 'SOLID',
propertyState: 'NOT_RENDERED'
},
shadow: {
type: 'OUTER',
transform: [Object],
alignment: 'BOTTOM_LEFT',
blurRadius: [Object],
color: [Object],
alpha: 1,
rotateWithShape: false,
propertyState: 'NOT_RENDERED'
}
}
}
In my project I am polling for slide changes since that data isn't available. The problem is that every time you git the endpoint, slides api returns a Different URL for the image used in the slide. why on earth would this be the case? It also does not invalidate the prior url, so every time we call the api we generate new duplicate urls. is
I was trying to follow the tutorial here: https://codelabs.developers.google.com/codelabs/slides-api#1
But the links don't work anymore. Even the "Report a mistake" button in the bottom left side leads to a 404 error.
Do consider fixing it.
Everything after step one is incorrect. There is no dropdown with New Service Account, and so on. If you intuitively walk through the wizard to create the service key, there is no way to download the JSON.
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.