我想使用以下代码从日历中删除一个事件:
//insertedEntry: I want to delete it.
"client.executeDelete(insertedEntry);"
in the Class CalendarClient:
" public void executeDelete(Entry entry) throws IOException {
HttpRequest request = requestFactory.buildDeleteRequest(new GenericUrl(entry.getEditLink()));
request.execute().ignore();
} "
怎么了?
我开始从这个“基础”(calendar-v2-atom-oauth-sample)构建我的模型: http://code.google.com/p/google-api-java-client/source/browse/? repo=samples#hg%2Fcalendar-v2-atom-oauth-sample%2Fsrc%2Fcom%2Fgoogle%2Fapi%2Fclient%2Fsample%2Fcalendar%2Fv2%2Fmodel