code to get calendar list and events