how do I get the event inviter through google calendar api? - google-calendar-api

I was trying to get the event inviter through google calendar api, but now I think I can only get the creator from api. The idea will be:
A: event creator
B: inviter (to C), after A created the event, B added C into the guest list.
C: the guest invited by B
If I am C, I will be able to receive invitation by email, which I can know the inviter is B. But if it's for google calendar api, I think I can only know the event creator is A. Just wanna know is it possible to know the inviter by google calendar api? Thanks.
I expect to find out a way to get event inviter via google calendar api.

Related

Google Cal API - Sending invites that insert calendar event automatically on attendees calendars

I'm using:
POST https://www.googleapis.com/calendar/v3/calendars/calendarId/events
To create and post a google calendar event on attendees calendars.
It worked when I was using my personal gmail account. However, when I switched to a Google workspace business account it did not auto insert the calendar invite on the attendees calendar.
I've checked permissions for both accounts, but I cannot figure out why it worked for my gmail during testing but won't operate the same with a Google workspace email. Example:
michael#gmail.com = it worked.
michael#google.com = it did not work.
Anyone experienced with adding g cal invites onto attendees calendars? Do I need an additional parameter like visibility when using this API?
Thank you !
I was able to try this and it succeeded using my personal gmail address as the calendarId. But when I changed the calendarId to a business account it failed. And the calendar invites did not automatically appear on attendees calendars like they did with my personal gmail account as the calendarId.

Google Calendar Push Notifications: New events and event validation before/after creation

I would like to now if the following functionality is supported by google calendar api:
Does the functionality provided by "Push notifications" include new events or just existing ones. Here is a copy paste from the documentation that let me doubt that new event notifications are supported "The Google Calendar API provides push notifications that let you watch for changes to resources.". So does this only apply to already existing resources (events on my case).
Is there a way to limit the availability on the google calendar. By this I mean setting a general limit (i.e working hours for a company for example from 9am to 5pm). And putting the logic further, is there a way to add more constraints. For example after I receive a notification of a new event created (if this functionality is provided), I check the event's data in my web-hook and let google calendar know that this event shouldn't be considered as valid.
If these requirements are not provided already by google calendar API, I am open to any suggestions to accomplish this even if it takes more coding.
Just to make it clear. The context of these questions is when the user creates an event in their google calendar through google calendar web interface not through my application.

How do I add a video call to a calendar event? (G Suite)

This is related to events created for accounts in a "G Suite" organization. In the API docs I can only find a field "hangoutLink", which is read-only. Is there any way to add a video call via the API?
I actually tried creating an event in Try this API and hangoutLink property is given in the response body. As discussed in Events resource, it is an absolute link to the Google+ hangout associated with this event. Attendees who wish to join the video call need only to visit the link and you can also verify it from the event which you have created.
For helpful insights, you may want to visit these links:
Google Calendar Automatically Adds Video Calls
Hangouts video calls in Google Calendar
How to disable Google’s “Video Call” default in Calendar Api?

Google Calendar API Get Events from Other Calendars

I'm extending a PHP application that allows managers to create events and assign specific users to those events. Before the user is listed as available to be assigned, however, I run a check against the user's calendar to see if they are available.
I've already built this once for Exchange using EWS and making use of FindItem method to retrieve events in a given timeframe for a user's email address, but I'm having trouble finding an equivalent in the Google Calendar API.
Both Events and FreeBusy Calls seem to require the specific user's calendarId, which is fine for retrieving the active authenticated manager's Calendar information, but not for their users, of which only the email address is currently available to my system.
Is there a way to retrieve events or a calendarId for a user based on a valid Google email address? (Or is there a better way to get other user's FreeBusy status that I've completely overlooked in my research?)
The Calendar API is a REST API that can be accessed through explicit HTTP calls or via the Google Client Libraries. However, please note that all requests to the Google Calendar API must be authorized by an authenticated user.
User's calendar list can be obtained through HTTP request:
GET https://www.googleapis.com/calendar/v3/users/me/calendarList/calendarId
Code examples for supported programming languages can be found in CalendarList: get.

how to google APIs for creating events on google calendar?

anybody know how to create and event on Google calendar using calendars api?
my users connect to my site using Google , I got a permission from them to write in their calendars then when user attend event on my site i need to crate an event on his/her calendar on gmail?
Checkout the full google calendar api
https://developers.google.com/google-apps/calendar/v1/developers_guide_javascript

Resources