Hi Johns, Thank you for your answer. The thing is I have managed to create an event on the calendar of my regular account through the API. But when I try to do so with my hosted account calendar, it doesn't work (the authentication works fine)
What I do is I send the request twice (using REST). With the first request I get a redirection with a session cookie, and with the second request I create the event (as explained here: http://code.google.com/intl/fr/apis/calendar/faq.html#redirect_handling) But with my hosted account, the response to the 2nd request is another redirection, instead of the creation of the event. The only things I change are my login and password, that is why I am wondering if there is any difference between a regular account calendar and a hosted account calendar. If anyone has managed to create an event on a hosted account using REST, please tell me what you did. On 2 avr, 19:55, Trevor Johns <[email protected]> wrote: > On Thu, Apr 2, 2009 at 9:23 AM, Ju <[email protected]> wrote: > > > Hi, > > > I have noticed that there is a difference between the URL of a > >calendaron a regularaccountand on ahostedaccount. So here is my > > question: is there a difference between the XML request you send to > > add an event on a regularaccountcalendarand the XML request you > > send to add an event on ahostedcalendar? > > > If anyone has already managed to add an event on ahostedaccount > >calendar, please tell me how you did, because I can't manage to add an > > event on myhostedcalendar(using ReST if possible), although it's > > working on my regularaccount. > > There should be no difference. > > This is because any email address can only be associated with > oneCalendaraccount(hostedor non-hosted) at a time. As a result, we > already have enough information from a regular request to determine > whether theaccountis on a Google Appshosteddomain or not. > > A few things to keep in mind: > > - Do NOT use /hosted/{domain} or /a/{domain} in feed URLs. > - If you're using ClientLogin, make sure that you set > accountType=HOSTED_OR_GOOGLE (or accountType=HOSTEDif you know for > sure you're using ahostedaccount) when requesting an auth token, as > described here: > > http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#R... > > -- > Trevor Johns --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
