Hi There I had ( :( ) a working java batch application running using username/ password pairs synchronizing between internal time-scheduler and Google Calendar. We recently changed to use the entire apps suite of programs, why I didn't wanted our users passwords anymore (I don't like the possibility to read the users mail). As per Google advise I now authenticate using Authsub Token. Everything is fine... That is retrieval and inserts of Events in Google Calendar. But no update.
It basically responds: "http://www.google.com/calendar/feeds/default/private/full/ p3mdp23n9bgha7mjd1g60qr0p8 com.google.gdata.util.InvalidEntryException: Bad Request Invalid request URI." OK. Looking a bit more in the documentation and in Groups I tried inserting the calendarID into the URI: It responds: "http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/private/full/ p3mdp23n9bgha7mjd1g60qr0p8 com.google.gdata.util.InvalidEntryException: Bad Request Invalid request URI." (The xx's being a Google Apps domain). I'm able to retrieve the Event just milliseconds before the update, why I know its a valid ID. //-------------------------------------------------------------------------------- public CalendarEventEntry updateEvent ( CalendarEventEntry p_entry, PrintStream p_out ) throws Exception { String v_eventURL; // URL v_URL = new URL( p_entry.getEditLink().getHref() ); p_out.println("UpdateEvent manipulating ID " + p_entry.getId()); v_eventURL = p_entry.getId().replaceFirst("default", gv_userID); p_out.println(v_eventURL); // v_eventURL = v_eventURL + gvc_version; // p_out.println(v_eventURL); //URL v_URL = new URL( p_entry.getId()); URL v_URL = new URL( v_eventURL); CalendarEventEntry v_updatedEntry = null; // v_updatedEntry = calendarService.getEntry ( v_URL, CalendarEventEntry.class ); // p_out.println(v_updatedEntry.getSelfLink().getHref()); // v_updatedEntry = calendarService.update( new URL( v_updatedEntry.getSelfLink().getHref() ) , p_entry ); v_updatedEntry = calendarService.update( v_URL , p_entry ); p_out.println("Updating entry with title \"" + v_updatedEntry.getTitle().getPlainText() + "\"."); p_out.println("New content: \"" + ((TextContent) v_updatedEntry.getContent()).getContent().getPlainText() + "\""); return ( v_updatedEntry ); Could someone with experience in using AuthSub Token authorization, using Java API please give me a clue to what's wrong? Please? Best regards (and happy Pentecost) Jakob --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
