java - Google Sheets API 的表格是否自动更新

标签 java google-sheets updates google-sheets-api google-api-java-client

我有一个包含无限循环的线程,它应该始终查看最新版本的 Google 表格。

每次迭代重新创建多少以确保更新我对它的引用?

  • NetHttpTransport
  • Sheets 对象?
  • Sheets#spreadsheets 调用?
  • Sheets.Spreadsheet#values 调用?
  • 没什么,API 的所有部分始终是最新的?

我无法在 Javadoc 中找到任何内容.

最佳答案

有一个 usage limit每个用户每秒约 1 个请求:

This version of the Google Sheets API has a limit of 500 requests per 100 seconds per project, and 100 requests per 100 seconds per user. Limits for reads and writes are tracked separately. There is no daily usage limit.

正如@TheMaster 评论的那样,API 应该是 ~ 始终是最新的,

您也可以使用 Apps Script triggers :

you can only do it with the help of Apps Script. You can use a trigger here to detect if something is change in your spreadsheet.

关于java - Google Sheets API 的表格是否自动更新,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53027401/

相关文章:

java - com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException

google-api - Google 表格 API V4 代码 503 "UNAVAILABLE"

javascript - 所有 google Sheet 内置函数上的 ReferenceError

google-sheets - Google 表格 - 减法产生意外结果

vb.net - 如何更新数据表

java - JDBC 和可更新的结果集

java - 将 EditText 带到 Android WebView 的前面

java - 如何使 JTable 内的 JPanel 内的组件可编辑?

java - Lucene 3.0.2 特性

mongodb - 使用 mongoDB 中的新键更新对象数组