为什么调用 Google Slides API 会返回错误?

Mik*_*ike 5 google-api python-3.x google-oauth google-slides-api

我基本上一直在使用此代码将图像加载到 Google Drive,然后使用 Python 将该图像传输到 Google Slides,但由于某种原因它今天停止工作。

我基于我的代码位于此处: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 中是否有任何变化?

小智 -1

我遇到了同样的问题。您应该查看此链接,其中描述了 Drive API 的更改:Upcomingchanges to the Google Drive API and Google Picker API

这里提出的解决方案似乎是可行的,尽管我自己还没有完全测试它:Google script ReplaceAllShapesWithImage with image from Drive does not work no more