Send event data google Calendar via http to java server

Asked

Viewed 68 times

2

In my script 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?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.