So, is there any way to get this working? I really don't understand what's going on and I can't seem to find anything that describes what's going on.
On Apr 3, 3:15 pm, Andre Roy <[email protected]> wrote: > Sent this to the wrong group originally, sorry. Friday, long hard > week....but at least the snow is going away :) > > I'm trying to set the vacation responder for users so that when we move > over to Google Apps (in an ever approaching deadline) their vacation > settings will be the same, or at least similar. This is my test code and > I'm getting an "Invalid request URI" error. I'm not even sure what that > means, let alone how to fix it. > > Here's the code: > > string MyDomain = "dom.ain"; > string MySecret = "0123456789abcdef01234567" > string MyProgrm = "TestProgram"; > string sub = "Subject of Vacation responder"; > string msg = "Message of Vacation responder"; > > GOAuthRequestFactory ReqFac = new GOAuthRequestFactory("gbase", > MyProgrm); > ReqFac.ConsumerKey = MyDomain; > ReqFac.ConsumerSecret = MySecret; > > GoogleMailSettingsEntry newVac = new GoogleMailSettingsEntry(); > newVac.Properties.Add(new > PropertyElement(AppsGoogleMailSettingsNameTable.enable, "yes")); > newVac.Properties.Add(new > PropertyElement(AppsGoogleMailSettingsNameTable.subject, sub)); > newVac.Properties.Add(new > PropertyElement(AppsGoogleMailSettingsNameTable.message, msg)); > > Uri vacUri = new > OAuthUri("http://www.google.com/m8/feeds/emailsettings/default/full", > u, MyDomain); > GoogleMailSettingsService vacService = new > GoogleMailSettingsService(MyDomain, MyProgrm); > vacService.RequestFactory = ReqFac; > vacService.Insert(vacUri, newVac); > > On the insert above is where it errors out with this: > > Google.GData.Client.GDataRequestException was unhandled > Message="Execution of request failed: > http://www.google.com/m8/feeds/emailsettings/default/[email protected]" > Source="Google.GData.Client" > ResponseString="Invalid request URI" > StackTrace: > at Google.GData.Client.GDataRequest.Execute() > at Google.GData.Client.GDataGAuthRequest.Execute(Int32 retryCounter) > at Google.GData.Client.GDataGAuthRequest.Execute() > at Google.GData.Client.Service.EntrySend(Uri feedUri, AtomBase > baseEntry, GDataRequestType type, AsyncSendData data) > at Google.GData.Client.Service.Insert(Uri feedUri, AtomEntry > newEntry, AsyncSendData data) > at Google.GData.Client.Service.Insert[TEntry](Uri feedUri, > TEntry entry) > > etc etc etc.... > > Any help, hints etc much appreciated. > > The help wiht OAuth and the contacts a while ago was much appreciated, > I've got that going despite the lack of documentation on the "other" > system. In fact, they were quite up-front about their lack of > documentation :/ > > -- > Andre -- The police never think it's as funny as you do. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Apps APIs" 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-apps-apis?hl=en -~----------~----~----~----~------~----~------~--~---
