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); }
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,