diff options
Diffstat (limited to 'scripts/connect')
-rwxr-xr-x | scripts/connect | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/connect b/scripts/connect index d8a16ab..aa342f6 100755 --- a/scripts/connect +++ b/scripts/connect @@ -54,7 +54,15 @@ function getCalendarDetails(caluri) { // found calendar home find calendars. resources.send(function(err, data) { - console.log(data); + var calendars = data.calendar; + var cal = calendars[Object.keys(calendars)[0]]; + console.log(cal); + var query = cal.createQuery(); + + query.send(function(err, data, xhr) { + console.log(query.xhr.data); + console.log(err, data); + }); }); } |