Programmatically adding and inviting guests

2,738 views
Skip to first unread message

James Lampert

unread,
Mar 8, 2012, 2:13:26 PM3/8/12
to google-ca...@googlegroups.com
I'm now able to programmatically create and update events through the V2 web services. But is there a way to programmatically add and invite guests?

James Lampert

unread,
Apr 5, 2012, 12:15:00 PM4/5/12
to google-ca...@googlegroups.com
The customer has asked about adding and inviting guests. I don't see anything in the docs about inviting guests on events created through the web service.

Can it be done?

Alain Vongsouvanh

unread,
Apr 5, 2012, 1:42:11 PM4/5/12
to google-ca...@googlegroups.com
Hello James,

When creating an event, simply add the guests to the event's list of attendees. This will add those guests as attendees to the event.
On v2, you can also add the gCal:sendEventNotifications attribute to send notifications to guest:

On v3, you can use the sendNotifications query parameter to achieve the same result:

Best,
Alain

On Thu, Apr 5, 2012 at 9:15 AM, James Lampert <hbquikc...@gmail.com> wrote:
The customer has asked about adding and inviting guests. I don't see anything in the docs about inviting guests on events created through the web service.

Can it be done?

--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-calendar-api/-/t7yZQpItHNgJ.

To post to this group, send email to google-ca...@googlegroups.com.
To unsubscribe from this group, send email to google-calendar...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-calendar-api?hl=en.



--
Alain Vongsouvanh | Developer Programs Engineer

James Lampert

unread,
Apr 9, 2012, 7:49:58 PM4/9/12
to google-ca...@googlegroups.com
On Thursday, April 5, 2012 10:42:11 AM UTC-7, Alain Vongsouvanh wrote:
When creating an event, simply add the guests to the event's list of attendees. This will add those guests as attendees to the event.
On v2, you can also add the gCal:sendEventNotifications attribute to send notifications to guest:

 Am I to understand that the "sendEventNotifications" attribute is the equivalent of clicking "Send" in the "Send invitations?" pop-up? When I do a get from OAuth Playground on an event created in Google Calendar, to which I invited a guest (and clicked "Send"), I don't see that attribute anywhere in the return data stream; all I see is "status":"invited" in the "attendee" structure for the guest.

--
JHHL

James Lampert

unread,
Apr 11, 2012, 4:44:50 PM4/11/12
to google-ca...@googlegroups.com
I wrote:
Am I to understand that the "sendEventNotifications" attribute is the equivalent of clicking "Send" in the "Send invitations?" pop-up? When I do a get from OAuth Playground on an event created in Google Calendar, to which I invited a guest (and clicked "Send"), I don't see that attribute anywhere in the return data stream; all I see is "status":"invited" in the "attendee" structure for the guest.
 
And now that I have had a chance to try it, I see that this is precisely what it does!

etstudent

unread,
Jul 3, 2012, 1:09:12 PM7/3/12
to google-ca...@googlegroups.com
Hello,

is it also possible to do this with a python script?
I want to use it in sl4a, to create an event and put some people as guests.

Sandip Shah

unread,
Jul 3, 2012, 1:11:17 PM7/3/12
to google-ca...@googlegroups.com
Yes, sure - https://developers.google.com/google-apps/calendar/v3/reference/events/update

Sandip

--
You received this message because you are subscribed to the Google Groups "Google Calendar API" group.
Reply all
Reply to author
Forward
0 new messages