how to read events from google calendar in titanium -


i developing app ios/android in need read events google calendar. started oauth 2.0 titanium , got access token how suppose list of calendars , events using access token.

i tried this:-

var url = "https://www.googleapis.com/calendar/v3/users/me/calendarlist?access_token = "+accesstoken;        var xhr = ti.network.createhttpclient({             onload: function(e) {               var calendar = json.parse(this.responsetext);                 ti.api.debug(this.responsetext);              },             onerror: function(e) {                 ti.api.debug(e.error);                 alert('error');             },             timeout:15000         });          xhr.open("get", url);         xhr.send(); 

it give me "authentication needed" error.

any help? in advance


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -