2
In my script java I can list my calendar events as below:
String pageToken = null;
do {
Events events= null;
try {
events = service.events().list(CALENDAR_ID).setPageToken(pageToken).execute();
} catch (IOException ex) {
Logger.getLogger(CalendarService.class.getName()).log(Level.SEVERE, null, ex);
}
List<Event> items = events.getItems();
for (Event event : items) {
System.out.println(event.getSummary());
System.out.println(event.getStart());
}
pageToken = events.getNextPageToken();
} while (pageToken != null);
I would like to know how I can send this information via http to a server?