When i try this link from Google Docs, to filter my sheet based on the username
parameter:
https://sheets.googleapis.com/v4/spreadsheets/spreadsheetid/values:batchGet?username="andika_1317"&key=mykey
I receive a response like this:
{
"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."
}
]
}
]
}
}
I don't know why I get the error response, since in the table I've created a username
field:
How can I perform these queries with the Sheets API?