On Jun 5, 9:19 am, dustin <[EMAIL PROTECTED]> wrote: > I am trying to use the "quick add" feature for Google Calendar to > parse an English description of the event. > > I am writing the code in Ruby, so I do not have access to this > function in the API. > > This is the message to send the event (which apparently has the > problem). > > <entry > xmlns:gd='http://schemas.google.com/g/2005'xmlns='http://www.w3.org/2005/Atom'> > <category term='http://schemas.google.com/g/2005#event' > scheme='http://schemas.google.com/g/2005#kind'/> > <content type='text'>lunch with joe on friday</content> > <quickadd xmlns:gCal='http://schemas.google.com/gCal/2005' > value='true'/> > <gd:transparency value='http://schemas.google.com/g/ > 2005#event.opaque'/> > <gd:eventStatus value='http://schemas.google.com/g/ > 2005#event.confirmed'/> > </entry> > > As a result, it creates the event, but does not use the quick add > feature (the <quickadd> xml must be wrong).
Dustin, You're setting the namespace for quickadd with a prefix, but you're not actually using that prefix. I think that's your problem. Either of these should work: <quickadd xmlns='http://schemas.google.com/gCal/2005' value='true'/> <gCal:quickadd xmlns:gCal='http://schemas.google.com/gCal/2005' value='true'/> But this doesn't work: <quickadd xmlns:gCal='http://schemas.google.com/gCal/2005' value='true'/> See the difference? :) -- Trevor Johns http://tjohns.net/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
