もちろん可能です。新しいイベントを保存する予定のカレンダーIDを知っていて、イベント挿入機能で使用する必要があります。例えば
:これはあなたを助けることができる
Event event = new Event();
event.setSummary("This is my Event");
event.setLocation("127.0.0.1 -- Home sweet Home!!");
ArrayList<EventAttendee> participants = new ArrayList<EventAttendee>();
participants .add(new EventAttendee().setEmail("[email protected]"));
event.setAttendees(participants);
DateTime start = new DateTime(new Date(), TimeZone.getTimeZone("UTC"));
event.setStart(new EventDateTime().setDateTime(start));
DateTime end = new DateTime(new Date(startDate.getTime() + 3600000), TimeZone.getTimeZone("UTC"));
event.setEnd(new EventDateTime().setDateTime(end));
Event createdEvent = service.events().insert("YourCalendarID", event).execute();
願っています!
私はこの問題を解決しました。新しいヘルプがはるかに優れています。 – R00st3r
新しいヘルプは何を意味しますか?できるだけ早く答えを出し、自分で答えを受け入れることができますか?それは大丈夫、お勧めします。ついていく。 – Zecas