如何获得“单元格中的图像"?来自Google Sheets API的网址 [英] How to get an "Image in cell" URL from the Google Sheets API

查看:131
本文介绍了如何获得“单元格中的图像"?来自Google Sheets API的网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用sheets.spreadsheets.values.get在电子表格中获取信息,但是包含图像的单元格显示一个空字符串值.

I use sheets.spreadsheets.values.get to get information inside a Spreadsheet, but the cells that contain images show an empty string value.

我尝试使用values:userEnteredValue作为请求的参数(如此问题

I tried using values:userEnteredValue as a parameter for the request (as shown in this question Retrieve images in cells using Google Sheets API), but that didn't work.

sheets.spreadsheets.values.get({
      spreadsheetId: 'XXX',
      range: 'firstSheet!A1:E10',
      key: "XXXX"
      //values: 'userEnteredValue'
}

这是我目前所拥有的

This is what I currently get and have

编辑: 我意识到我的问题之一是我应该使用spreadsheets.get时使用了spreadsheets.values.get.我已经更改了此设置,但仍然无法获取网址

EDIT: I realized one of my problems was that I used spreadsheets.values.get when I should be using spreadsheets.get. I have changed this, but I still cant manage to get the url

包含文本的单元格具有userEnteredValue属性,但是包含图像的单元格没有.

The cell that contains text has a userEnteredValue property, but the one that contains the image does not.

推荐答案

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