【问题标题】:Is there a way to get the available currencies format using Google Sheets API v4?有没有办法使用 Google Sheets API v4 获取可用的货币格式?
【发布时间】:2019-07-28 15:04:46
【问题描述】:

所以,我想使用自定义货币符号来格式化一个名为 Cost 的列,比如说 New Zealand Dollar

我可以通过以下步骤使用 Google 表格做到这一点

问题是如何使用 Google Sheets API 获取所有可用的货币及其格式?我查看了guide,但一无所获

有人知道吗?

【问题讨论】:

  • 很遗憾,在现阶段,还没有从Spreadsheet中获取准备好的自定义货币的方法,但是可以通过the number format使用Sheets API的batchUpdate方法来设置。抱歉,我无法提出直接解决方案。例如,作为一种解决方法,如何准备数字格式列表并使用列表中的自定义货币?如果这不是您想要的方向,我很抱歉。
  • @Tanaike,这很有帮助,我想确保我没有遗漏任何东西。再次感谢您的回复
  • 感谢您的回复。但我很抱歉,您的问题无法直接解决。我希望这样的值作为枚举类型存在。顺便问一下,对于有同样问题的其他用户,您可以将其发布为答案吗?这样,这对他们很有用。

标签: api google-sheets google-sheets-api


【解决方案1】:

我在这里发布@Tanaike 的评论作为答案。希望其他正在寻找相同问题答案的人可能会发现价值。

Unfortunately, in the current stage, there are no methods for retrieving the prepared custom currency from Spreadsheet, while that can be set by the number format with the method of batchUpdate of Sheets API. I apologize I cannot propose the direct solution. As a workaround, for example, how about preparing a list of the number formats and using the custom currency from the list? If this was not the direction you want, I apologize. – Tanaike 

再次感谢@Tanaike

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-01-29
    • 1970-01-01
    • 2021-04-20
    • 2017-09-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多