2
GData API for Google Calendar in Java을 사용하여 Google 캘린더에 연결하는 Android APP를 개발 중입니다. 지금까지 이벤트를 만들었지 만 제목, 설명 및 시간 만 설정할 수있었습니다.Google 캘린더 API : 새 이벤트 속성
누구나 이벤트에 설정할 수있는 모든 매개 변수가있는 참조 또는 샘플을 어디에서 찾을 수 있습니까?
나는 지금까지 내가 성취 한 것에 대한 몇 가지 코드를 남겨 두었다.
CalendarService calendarService = new CalendarService("CalendarAPP");
calendarService.setUserCredentials(<username>, <password>);
URL postUrl = new URL("https://www.google.com/calendar/feeds/<GMAIL ACCOUNT>/private/full");
CalendarEventEntry myEntry = new CalendarEventEntry();
myEntry.setTitle(new PlainTextConstruct("Tennis with Beth"));
myEntry.setContent(new PlainTextConstruct("Meet for a quick lesson."));
DateTime startTime = DateTime.now();
DateTime endTime = DateTime.now();
When eventTimes = new When();
eventTimes.setStartTime(startTime);
eventTimes.setEndTime(endTime);
myEntry.addTime(eventTimes);
CalendarEventEntry insertedEntry = connection.getCalendarService().insert(postUrl, myEntry);
미리 감사드립니다.
미키 완.