Hello,

If you want to share a calendar with multiple users, you don't have to
create multiple client but only use one that will update the calendar's ACL
entries (by adding each users or groups to the ACL). But according to the
code snippet you posted, you also want to add the calendar to the user's
calendar list (the list of calendars available on the left navigation pane
in the UI).
In this case, since you are using 2-Legged OAuth, you could re-use the same
client and change the xoauth_requestor_id with each request:

client = gdata.calendar.client.CalendarClient()
client.auth_token = gdata.gauth.TwoLeggedOAuthHmacToken(key, secret, None)
for email in emails:
  client.auth_token.requestor_id = email
  client.InsertCalendarSubscription(calendar)

Unfortunately, you won't be able to batch such requests as they occur for
different users.
Best,
Alain

On Mon, Oct 31, 2011 at 4:38 AM, Gwyn Howell <[email protected]>wrote:

> Even better, is there a way of batching these requests together?
>
> --
> 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://code.google.com/apis/calendar/community/forum.html
>



-- 
Alain Vongsouvanh | Developer Programs Engineer

-- 
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://code.google.com/apis/calendar/community/forum.html

Reply via email to