0
ID를 사용하여 Google 사이트를 삭제하는 방법을 찾을 수 없습니다. 나는 해당 사이트에 SiteEntry
을 생성하고 delete()
메서드를 호출해야하지만, ID가있는 SiteEntry
을 만드는 방법에 대해서는 알지 못합니다.Google 사이트를 ID로 삭제하는 방법
이 내가 사이트를 만드는 오전 방법입니다
SitesService client = new SitesService("domain-AppName-v1");
client.setUserCredentials("[email protected]", "password");
//Define Site
SiteEntry entry = new SiteEntry();
entry.setTitle(new PlainTextConstruct("Accounting 001"));
entry.setSummary(new PlainTextConstruct("Accounting 001"));
entry.getCategories().add(new Category(TagCategory.Scheme.TAG, "Course Sessions", null));
//Create the site
SiteEntry result = client.insert(new URL("https://sites.google.com/feeds/site/domain.com/"), entry);
//This Delete does not work
result.delete();
//Trying to setup the id in a SiteEntry, it doesn't work either
SiteEntry e = new SiteEntry();
e.setId(result.getId());
e.delete();