I'm trying to follow the documentation for updating a list feed using
Javascript. What is the format for the PUT request? Does the data need to
be in JSON or XML? If XML, exactly like the example shown or are there
differences? I've tried sending data to the edit URL mentioned in the docs
with XML in the exact same format as shown, but it returns as an empty
string error.
My code is below:
var updateBasicUrl = https://spreadsheets.google.com/feeds/list/*
spreadsheeturl*/od6/private/full/cokwr/fmmdp5chdam5i?access_token=*accesstoken
from oauth2 put here - works to get data *;
$.ajax({
url: updateBasicUrl,
type: 'PUT',
contentType: 'application/atom+xml',
data: xmlBasic,
})
.done(function() { alert("Success"); })
.fail(function(jqXHR, textStatus, errorThrown) {
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
});
Any advice or working examples of javascript api updating is much
appreciated.
--
You received this message because you are subscribed to the Google Groups
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.