我基本上一直在使用这段代码将图像加载到 Google Drive,然后使用 Python 将该图像传输到 Google Slides,由于某种原因,它今天停止工作了。
我所基于的代码位于此处:http://wescpy.blogspot.com/2016/11/using-google-slides-api-with-python.html http://wescpy.blogspot.com/2016/11/using-google-slides-api-with-python.html
然而,今天我重新运行它并收到错误:
googleapiclient.errors.HttpError:https://slides.googleapis.com/v1/presentations/PRESENTATION_ID 返回“无效请求[0].createImage:禁止访问提供的图像。”>
我想知道 Google API 是否有任何变化?
今天2020年3月6日您是否遇到同样的错误?
<HttpError 400 when requesting https://slides.googleapis.com/v1/presentations/6-7HI:batchUpdate?fields=&alt=json returned "Invalid requests[24].createImage: Access to the provided image was forbidden.">
每当我尝试使用以下任一方法推送存储在 Google Slides 中的任何图像时,都会发生该错误创建图像 or 用图像替换所有形状.
请注意,指向 Google 云端硬盘内容的 URL 与公共内容相关。因此,@miladio 上面提到的解决方法目前没有用。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)