简体   繁体   English

如何找到 Google Sheets API URL?

[英]How to find Google sheets API URL?

I'm trying to figure out how to find the API URL of a google sheet, preferably if I can find it within Google sheets itself instead of making an API call.我试图弄清楚如何找到谷歌表格的 API URL,最好是如果我可以在谷歌表格本身中找到它而不是进行 API 调用。

This is an example of how it'd look:这是它的外观示例:

https://spreadsheets.google.com/feeds/cells/1Mslx2H97aiTNhALMJa9rH3N57MxLAmirvXvG_HIutPg/ou8i9q1/private/full https://spreadsheets.google.com/feeds/cells/1Mslx2H97aiTNhALMJa9rH3N57MxLAmirvXvG_HIutPg/ou8i9q1/private/full

I know the "1Mslx2H97aiTNhALMJa9rH3N57MxLAmirvXvG_HIutPg" is the sheet ID, but I can't figure out where the "ou8i9q1" comes from.我知道“1Mslx2H97aiTNhALMJa9rH3N57MxLAmirvXvG_HIutPg”是工作表 ID,但我不知道“ou8i9q1”来自哪里。

ou8i9q1 means worksheetId. ou8i9q1表示工作表 ID。 od6 means the worksheetId of page 1 of spreadsheet. od6表示电子表格第 1 页的 worksheetId。 od6 is constant. od6是常数。

You can confirm each worksheetId from XML of the following URL.您可以从以下 URL 的 XML 确认每个 worksheetId。

https://spreadsheets.google.com/feeds/worksheets/[sheet ID]/public/basic

You can see each sheet name at <title></title> in the XML.您可以在 XML 中的<title></title>处看到每个工作表名称。 Also you can retrieve worksheetId using the following regex.您还可以使用以下正则表达式检索 worksheetId。

\/list\/\w+\/(\w+)\/public

Reference :参考 :

If I misunderstand your question, I'm sorry.如果我误解了你的问题,我很抱歉。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM