I need to update the name of some Google Calendar events, once I get them through JavaScript. I only have the sample code which Google shows in their Google Developer site,
You have to perform an HTTP (PUT) Request. This could maybe done be done with AJAX or jQuery.ajax():
jQuery.ajax:
//This is the event data you got, with the changed values, you want to be changed in Calendar API
var changedEventData;
//changing the data of an calendar event
$.ajax({
url: "https://www.googleapis.com/calendar/v3/calendars/" + calendarId + "/events/" + eventId,
method: "PUT",
data: changedEventData
});
Remember to implement jQuery
I hope this works for you!