Is it possible to add local image to Slide using Google Slides API and Python?

后端 未结 2 1541
悲&欢浪女
悲&欢浪女 2021-01-25 16:59

I want to create a new slides out of the local images using Python. Unfortunately, I do not see an example to upload a local image, only an image URL via the official documenta

2条回答
  •  深忆病人
    2021-01-25 17:57

    From the official documentation:

    https://developers.google.com/slides/how-tos/add-image

    If you want to add private or local images to a slide, you'll first need to make them available on a publicly accessible URL. One option is to upload your images to Google Cloud Storage and use signed URLs with a 15 minute TTL. Uploaded images are automatically deleted after 15 minutes.

提交回复
热议问题