如何用python脚本替换google doc上已有的图片,用新的图片集?

问题描述 投票:0回答:1

如何在这里得到image_id?请帮助!!!

 "replaceImage": {
    "imageObjectId": IMAGE_ID",
    "uri": REPLACED_IMAGE_URL,
    "imageReplaceMethod": IMAGE_REPLACE_METHOD,
     }
google-docs-api
1个回答
0
投票

如果映像在您的硬盘上,您可以通过以下两种方法

  • 转到驱动器用户界面,右键单击图像->共享-> 获取可共享链接,并检索ID作为之间的部分。https://drive.google.com/file/d//view?usp=sharing:https://drive.google.com/file/d/XXX/view?usp=sharing

  • 或使用以下方法: 文件:列表缩小结果范围,通过指定 q参数例如:

    mimeType = 'XXX' and name = 'XXX' and 'XXX' in parents

© www.soinside.com 2019 - 2024. All rights reserved.