[英]Get Google Calendar Participants of Event with API in Java
我想用Java編寫一個程序,該程序可以從Google日歷活動中刪除參與者。 現在,我的程序僅按其CalendarID返回日歷的事件。 我已經使用了Google Developers Site(Calendar API V3)的代碼。 授權過程結束后,代碼將創建一個名為“ service”的新對象。
Calendar service = new Calendar.Builder(httpTransport, jsonFactory,
credential).build();
getAllEvent(service);
有了這個
events = service.events().list("CalendarID")
.setPageToken(pageToken).execute();
List<Event> items = events.getItems();
我從日歷中獲取所有事件的列表,但我想獲取參與者,然后從事件中刪除特殊參與者。 有人可以給我簡單的代碼片段或幫助嗎? 我試過了
service.events().list("CalendarId").getParticipants or "getAttendees"
但是沒有這樣的方法。
基本方法是:
List
順便說一句,這是“編程101”。 在掌握了語言和編碼的基礎知識之前,您可能應該避免使用Web API。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.