【发布时间】:2023-03-20 16:06:01
【问题描述】:
使用 Postman,调用 GET https://spreadsheets.google.com/feeds/list/1XJgmvAGNmpyJieZTh40PuoKHoKOI1CJlMqSStu75fWo/od6/public/basic?alt=json&range=(A1:F101).getValue()
我得到一个带有 xml 架构的 JSON 提要,例如 { “版本”:“1.0”, "编码": "UTF-8", “喂养”: { "xmlns": "http://www.w3.org/2005/Atom", "xmlns$openSearch": "http://a9.com/-/spec/opensearchrss/1.0/", "xmlns$gsx": "http://schemas.google.com/spreadsheets/2006/extended", “ID”: { "$t": "https://spreadsheets.google.com/feeds/list/1XJgmvAGNmpyJieZTh40PuoKHoKOI1CJlMqSStu75fWo/od6/public/basic" }, “更新”: { "$t": "2020-02-27T00:58:42.663Z" }, “类别”: [ { "方案": "http://schemas.google.com/spreadsheets/2006", “术语”:“http://schemas.google.com/spreadsheets/2006#list”。
我只想要工作表中的数据。
我使用什么内联脚本来获取一系列数据,例如 A1:C6
或所有数据(仅)
提前致谢
【问题讨论】:
标签: json google-apps-script google-sheets