slides-api
slides-api copied to clipboard
Schrodinger's URL
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