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
> calendar on a regular account and on a hosted account. So here is my
> question: is there a difference between the XML request you send to
> add an event on a regular account calendar and the XML request you
> send to add an event on a hosted calendar?
>
> If anyone has already managed to add an event on a hosted account
> calendar, please tell me how you did, because I can't manage to add an
> event on my hosted calendar (using ReST if possible), although it's
> working on my regular account.
There should be no difference.
This is because any email address can only be associated with one
Calendar account (hosted or non-hosted) at a time. As a result, we
already have enough information from a regular request to determine
whether the account is on a Google Apps hosted domain 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=HOSTED if you know for
sure you're using a hosted account) when requesting an auth token, as
described here:
http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html#Request
--
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
-~----------~----~----~----~------~----~------~--~---