Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fetch(`https://slides.googleapis.com/v1/presentations/${idOfPresentationWithMoreThanFiftySlides}`, {
- method: "GET",
- headers: {
- Authorization: "Bearer ${token}"
- },
- })
- .then(res => res.json())
- .then(res => {
- res.slides.forEach(slide => {
- fetch(`https://slides.googleapis.com/v1/presentations/${res.presentationId}/pages/${slide.objectId}/thumbnail?thumbnailProperties.mimeType=PNG&thumbnailProperties.thumbnailSize=LARGE`, {
- method: "GET",
- headers: {
- Authorization: "Bearer ${token}"
- }
- })
- .then(res => res.json())
- .then(res => console.log(res))
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement