I am trying to set some parameters (orderby, sortorder, start-index) for a Calendar API V3 events request in Java. Those parameters work fine when using JavaScript/Ajax/URL.
com.google.api.services.calendar.Calendar.Events.List list = client.events().list("primary"); list.setQ(searchText); // list.setOrderBy("starttime"); // -> BAD REQUEST list.set("sortorder", "descending"); // does not affect the order list.set("orderby", "starttime"); // does not affect the order? com.google.api.services.calendar.model.Events feed = list.execute();
I have the problem too. After some googling I didn't find any way to set the sortorder in Calendar API v3... seems weird, because other API versions did have the option...!?
Am Sonntag, 2. September 2012 19:53:36 UTC+2 schrieb Thomas Börkel:
> I am trying to set some parameters (orderby, sortorder, start-index) for a > Calendar API V3 events request in Java. Those parameters work fine when > using JavaScript/Ajax/URL.
> com.google.api.services.calendar.Calendar.Events.List list = > client.events().list("primary");
> list.setQ(searchText);
> // list.setOrderBy("starttime"); // -> BAD REQUEST
> list.set("sortorder", "descending"); // does not affect the order
> list.set("orderby", "starttime"); // does not affect the order?
> com.google.api.services.calendar.model.Events feed = list.execute();
> I have the problem too. After some googling I didn't find any way to set > the sortorder in Calendar API v3... seems weird, because other API versions > did have the option...!?
> Am Sonntag, 2. September 2012 19:53:36 UTC+2 schrieb Thomas Börkel:
>> HI!
>> I am trying to set some parameters (orderby, sortorder, start-index) for >> a Calendar API V3 events request in Java. Those parameters work fine when >> using JavaScript/Ajax/URL.
>> com.google.api.services.calendar.Calendar.Events.List list = >> client.events().list("primary");
>> list.setQ(searchText);
>> // list.setOrderBy("starttime"); // -> BAD REQUEST
>> list.set("sortorder", "descending"); // does not affect the order
>> list.set("orderby", "starttime"); // does not affect the order?
>> com.google.api.services.calendar.model.Events feed = list.execute();