javascript - Google calendar gadget: How to fetch UID from clicked Event in calendar -


this sidebar gadget listens on event click , returns me event info (more info):

<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 // gadget containers request not run js inline. // instead, register 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: json google returns me has id not uid,

its unique id google calendar internal usage.

for example if user clicks on event on google calendar 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", used google.calendar.showevent("bgxwb3vozxjkcgyyy2nladlumw41dwrvnm9gc2hvdxn0aw5abq")

how fetch meeting uid example llpouherdpf2cceh7n1n5udo6o@google.com

please help,


Comments