Google Calendar Gadget: How to get the UID from a clicked event on a calendar

This is the sidebar gadget that listens for the event and returns me the event information ( Additional Information ):

<Module> <ModulePrefs title="subscribeToEvents Test" height="200" author="me" <Optional feature="google.calendar-0.5.read"/> </ModulePrefs> <Content type="html"> <![CDATA[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <body> <div id="out">No event</div> <script> function subscribeEventsCallback(e) { var html = 'No event'; if (e) { html = gadgets.json.stringify(e); } document.getElementById('out').innerHTML = gadgets.util.escapeString(html); } ///https://www.google.com/calendar/b/1/render?gadgeturl=http://devblog.meeterapp.com/wp-content/uploads/2015/03/fess_subscribe_to_dates.xml#main_7 // The gadget containers request that we do NOT run any JS inline. // Instead, register a callback handler. gadgets.util.registerOnLoadHandler(function() { google.calendar.read.subscribeToEvents(subscribeEventsCallback); }); function showEvent(){ google.calendar.showEvent(localEevent.id); } </script> </body> </html> ]]></Content> </Module> 

The problem is this: the JSON that Google returns has an id but not a UID,

Its unique identifier for internal use of Google Calendar.

for example, if a user clicks on an event in the Google calendar, I return this JSON:

 { "timezone": "Asia/Jerusalem", "startTime": { "year": 2015, "month": 7, "date": 6, "hour": 14, "minute": 0, "second": 0 }, "endTime": { "year": 2015, "month": 7, "date": 6, "hour": 15, "minute": 0, "second": 0 }, "title": "Testing", "location": "", "id": "bGxwb3VoZXJkcGYyY2NlaDluMW41dWRvNm9gc2hvdXN0aW5AbQ", "status": "invited", "color": "#DB7972", "palette": { "darkest": "#D06B64", "dark": "#924420", "medium": "#D06B64", "light": "#DB7972", "lightest": "#F0D0CE" }, "attendees": [], "attendeeCount": 0, "calendar": { "email": " snaggs@gmail.com " }, "creator": { "email": " snaggs@gmail.com " }, "owner": { "email": " snaggs@gmail.com " }, "accessLevel": "owner" } 

we have "id": "bGxwb3VoZXJkcGYyY2NlaDluMW41dWRvNm9gc2hvdXN0aW5AbQ", , which is used for google.calendar.showEvent("bGxwb3VoZXJkcGYyY2NlaDluMW41dWRvNm9gc2hvdXN0aW5AbQ")

How to get a collection of UID for example llpouherdpf2cceh7n1n5udo6o@google.com

Please, help,

+7
javascript google-calendar google-gadget
source share

No one has answered this question yet.

See related questions:

7494
How to remove a specific element from an array in JavaScript?
5722
How to remove a property from a JavaScript object?
5129
How to return a response from an asynchronous call?
2329
How to detect a click outside an element?
3
Google Calendar API - how do I add a calendar gadget along with an event?
one
Google Calendar API not working with curl client request
one
How to determine the current week in a Google Calendar sidebar gadget
0
Google Calendar API C Problem Issue
0
How to use the service account to change event notifications for all participants / users participating in the calendar?
0
Js date format from google calendar event

All Articles