是否可以使用Google Sheets API v4获取可用的货币格式?

时间:2019-07-28 15:04:46

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

因此,我想使用自定义货币符号来格式化名为Cost的列,例如New Zealand Dollar
enter image description here

我可以使用Google表格执行以下步骤

enter image description here enter image description here

问题是如何使用Google Sheets API获取所有可用货币及其格式?我看着guide,但没发现

有人知道吗?

1 个答案:

答案 0 :(得分: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