【问题标题】:Google Sheets API returns null for inputValueGoogle Sheets API 为 inputValue 返回 null
【发布时间】:2015-05-15 13:28:03
【问题描述】:

我试图从单元格中取出公式而不是最终值

// A1  www.google.com
// B1 =A1

cell.inputValue // value is null. I want the value: =A1
cell.value // equals www.google.com. Again not the value I'm looking for.

根据 googles API 文档,公式应该在 inputValue 属性中

https://developers.google.com/google-apps/spreadsheets/#working_with_cell-based_feeds

想法?

【问题讨论】:

    标签: .net google-api google-sheets


    【解决方案1】:

    答案是基本 URL 不包含 inputValue 公式。

    https://spreadsheets.google.com/feeds/cells/spreadsheetId/worksheetId/private/values

    你必须使用完整的投影来获得水合特性。

    CellQuery cellQuery = new CellQuery(key, "od6", "private", "full");
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多