In my script java 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 link to a server?