I am in EST, but it shouldn't matter because the dates are passed around as formatted strings.
Here is a test program I wrote in Java. Its sets the vacation responder with the API using a hardcoded entry, then pulls back the entry and prints it out:
public class VacationTest {
public static void main(String[] args) {
System.out.println("Program start");
setVacation();
getVacation();
System.out.println("Program finish");
}
public static void setVacation(){
GmailSettingsService serv = null;
try{
serv = new GmailSettingsService("your-apps", "XXXXXX.XXX", "XXXXXX", "XXXXXX");
}catch(Exception e){
e.printStackTrace();
System.out.println("new service threw exception");
}
System.out.println("Creating entry");
GenericEntry ent = new GenericEntry();
ent.addProperty("enable", "true");
ent.addProperty("contactsOnly", "true");
ent.addProperty("domainOnly", "false");
ent.addProperty("subject", "Test");
ent.addProperty("message", "test");
ent.addProperty("startDate", "2011-08-23");
ent.addProperty("endDate", "2011-08-27");
ent.validate();
URL url = null;
try{
}catch(Exception e){
e.printStackTrace();
System.out.println("new url threw exception");
}
try{
System.out.println("Sending entry");
serv.update(url, ent);
}catch(Exception e){
e.printStackTrace();
System.out.println("update threw exception");
}
}
public static void getVacation(){
GmailSettingsService serv = null;
try{
serv = new GmailSettingsService("your-apps", "XXXXXX.XXX", "XXXXXX", "XXXXXX");
}catch(Exception e){
e.printStackTrace();
}
URL url = null;
try{
}catch(Exception e){
e.printStackTrace();
}
GenericEntry entry = null;
try{
entry = serv.getEntry(url, GenericEntry.class);
}catch(Exception e){
e.printStackTrace();
}
Map map = entry.getAllProperties();
Iterator iterator = map.keySet().iterator();
System.out.println("Printing entry");
while (iterator.hasNext()) {
String key = iterator.next().toString();
String value = map.get(key).toString();
System.out.println(key + " : " + value);
}
}
}