如何将带有单独显示文本的 URL 传递给 Google 工作表 API?

How can I pass a URL with separate display-text to Google Sheets API?

Google Sheets API 允许我使用 API 方法 spreadsheets.values.update

在 sheet 中设置值

如果我传递 URL(或者应该是 URI?),例如 http://www.example.com/123 作为单元格值,它在 sheet 中显示为 link。但是在 sheet 中,我希望我的 link 显示为 123 并且我看不到如何对其进行编码...并且尝试 Google 让我无处可去,因为"URL"用在很多地方

单元格文本应该如何格式化?

下面这行代码应该可以工作

sheet.update_cell(1,2, "=HYPERLINK(\"http://www.example.com/123\",\"123\")")

结果是: