当我在Google文档中尝试此链接时,要根据username
参数过滤我的工作表:
https://sheets.googleapis.com/v4/spreadsheets/spreadsheetid/values:batchGet?username="andika_1317"&key=mykey
我收到这样的回复:
{
"error": {
"code": 400,
"message": "Invalid JSON payload received. Unknown name \"username\": Cannot bind query parameter. Field 'username' could not be found in request message.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"description": "Invalid JSON payload received. Unknown name \"username\": Cannot bind query parameter. Field 'username' could not be found in request message."
}
]
}
]
}
}
我不知道为什么会收到错误回复,因为我在表格中创建了username
字段:
如何使用Sheets API执行这些查询?