I am trying to add a new row in a google spreadsheet via JavaScript/JQuery. I have no idea how to do this, but here is my attempt:
var myJSONObject = {"entry": [
"gsx:name": name,
"gsx:email": email,
"gsx:phone": phone,
"gsx:guests": guests
]}
var json_uri = "https://spreadsheets.google.com/feeds/list/" + KEY + "/" + id + "/" + SECURE + "/values?alt=json"
$.ajax({
type: "POST",
url: json_uri,
//contentType: 'application/json',
data: myJSONobject
dataType: 'json',
success: function(data){
alert("row added!");
},
error: function(){
alert("error");
}
});
but I keep getting the error :(