为什么调用Google Slides API会返回错误? [英] Why call of Google Slides API returns error?

查看:117
本文介绍了为什么调用Google Slides API会返回错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我基本上一直在使用此代码将图像加载到Google云端硬盘中,然后使用Python将其转移到Google幻灯片上,由于某种原因,该图像今天停止工作.

I have essentially been using this code to load an image into Google Drive and then transferring that image over to Google Slides using Python and for some reason it stopped working today.

我基于的代码位于此处: http://wescpy.blogspot.com/2016/11/using-google-slides-api-with-python.html

The code I based mine off of is located here: http://wescpy.blogspot.com/2016/11/using-google-slides-api-with-python.html

但是,今天我重新运行它并遇到错误:

However, today I reran it and am getting an error:

googleapiclient.errors.HttpError:https://slides.googleapis.com/v1/presentations/PRESENTATION_ID返回无效的请求[0] .createImage:禁止访问提供的图像.>

googleapiclient.errors.HttpError: https://slides.googleapis.com/v1/presentations/PRESENTATION_ID returned "Invalid requests[0].createImage: Access to the provided image was forbidden.">

我想知道Google API中是否有任何更改?

I am wondering if anything have changed in Google API?

推荐答案

在2020-05-17再次发生错误:

Error again occuring @ 2020-05-17:

在此之前,它已经可以完美地将映像添加到驱动器了->打开权限->将其从驱动器复制到幻灯片上->关闭权限.

Before this moment it has been working flawlessly with the update to add image to drive -> open permission -> copy it over from drive to slide -> close permissions.

googleapiclient.errors.HttpError: <HttpError 400 when requesting https://slides.googleapis.com/v1/presentations/<SLIDE_ID>?alt=json returned "Invalid requests[152].createImage: Access to the provided image was forbidden.">

这篇关于为什么调用Google Slides API会返回错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆