Read Action¶
It is used when trying to access a row.
Base URL¶
https://script.google.com/.../exec?action=read
Parameters¶
id¶
Require | The ID of the line to be read.
https://script.google.com/.../exec?action=read&id=123456789
asJSON¶
Optional | You have a named table take the result as JSON.
https://script.google.com/.../exec?action=read&id=123456789&asJSON=true
All parameters can be sent via POST.
{
"id": "123456789",
"asJSON": true
}
Returns¶
status
: Boolean - True if it is successful.
data
: Array - Data found.
message
: String - If status is false, it is added instead of data
and contains an error message.
{
"status": true,
"data": ["Hello", "World"]
}
{
"status": false,
"message": "id parameter not found"
}
{
"status": false,
"message": "id not exists"
}