Python 在一个google API工作表中编写多个超链接
有没有一种方法可以在单元格范围内使用Python 在一个google API工作表中编写多个超链接,python,hyperlink,google-sheets-api,Python,Hyperlink,Google Sheets Api,有没有一种方法可以在单元格范围内使用 formulaValue 使用一个batchUpdate API调用 这可以单独工作,但我想通过一次调用编写/更新范围内的多个链接,是否可能?谢谢!: requests_url.append({ "updateCells": { "rows": [ { "values": [{
formulaValue
使用一个batchUpdate API调用
这可以单独工作,但我想通过一次调用编写/更新范围内的多个链接,是否可能?谢谢!:
requests_url.append({
"updateCells": {
"rows": [
{
"values": [{
"userEnteredValue": {
"formulaValue": '=HYPERLINK("https://google.com")',
}
}]
}
],
"fields": "userEnteredValue",
"start": {
"sheetId": 1461485229,
"rowIndex": 2,
"columnIndex": 2
}
}})
body = {
"requests": requests_url
}
service.spreadsheets().batchUpdate(spreadsheetId=SAMPLE_SPREADSHEET_ID, body=body).execute()
不幸的是,在当前阶段,Sheets API无法将包含多个超链接的值放入一个单元格。我相信这将在未来的更新中得到解决。因此,在当前的解决方案中,当您想要使用python时,需要使用Google Apps脚本创建的Web应用,但如果这不是你期望的方向,我道歉。