Is it possible to update multiple calendars using google calendar api - google-api

I want to allow users of my site to schedule an appointment with other users. Once both users agree on the date and time it will update both their calendars to show this (assuming they are authenticated).
Is this possible or is the Calendar api simply for updating one calendar as an authorized user?
Thanks in advance!

As long as the user / users you are updating calendars for have both authenticated your application yes you can add events to their calendars.
A few things to note I the beginning. There is a difference between a calendar list and a calendar. Calendar list is the list on the left hand side of all of the calendars a user has. A user can have more then one calendar so be sure to ask the users which calendar they will want to add the event to.

Related

Can't get a list owned by me in Google Calendar API

Using Google Calendar API v3 to get the calendar list.
However, some users are not able to retrieve their own owner's calendar.
I tried using the Try this API for CalendarList#list to retrieve it,
but it did not return the owner's calendar.
https://developers.google.com/calendar/v3/reference/calendarList/list
However, if the user specifies calendarId as primary in CalendarList#get,
it can be retrieved successfully.
https://developers.google.com/calendar/v3/reference/calendarList/get
Do you have any advice for me?
Can't get a list owned by me in Google Calendar API
Answer: There is no endpoint which will return a full list of all calendars Owned or that the user simply has access to. As this endpoint does not exist the answer to your question is you cant so its working as intended.
In actually you have misunderstood what the calendarlist is. See below
What is calendarList and how does it work?
The calendarList.List is mealy the list that appears on the bottom left hand side of the UI window. There is no guarantee that a user will have anything in this list as it depends upon how the user added the calendar to the list in the first place. The user could also have deleted it form the list. The UI tends to do it automatically but if it was added programmaticlly it will probably not appear it the users calendarlist. So you should not be relying upon the calendarlist to contain a list of all the calendars a user has access to. please see Events and calendars
All users do however have a primary calendar you can always do calender.get on primary and you will get back the primary calendar for that user.

How does google calendar knows which events to include in sync?

I want to sync the events in my server side application with Google calendar events. I read about https://developers.google.com/google-apps/calendar/v3/sync but I'm not sure how it selects events? Are they per developer application or per user or per user or per user per calendar? or something else? If it is per user, is there any way to get all the changes for events created withmy application or associated with users of my application?

How to update other appointments in my calender through ews

I am sync my outlook calender with my application through ews and also other appointments that are not created by me.
The issue is , I am updating outlook calendar from my application. When I try to update other appointments that are not created by me are throwing error.
Is there way in ews to update those appointments? Since outlook have an option to update(save & close ) the appointments ?
Please advice on this
No as that breaks the business logic eg an attendee can't update a Meeting organised by somebody else. You need to create a Meeting update from the Organiser copy of the appointment and then accept that on the user behalf https://msdn.microsoft.com/en-us/library/office/dd633648(v=exchg.80).aspx if you want to maintain the attendees Calendars integrity.

How get user contacts list from EWS

I'm developing web application which is similar to address-book,
now I want to create a page with list of user contacts. I already have user email and show out_of_office badge using GetUserOOFSettrings API method.
Does the API for getting user's (favorite) contacts list exists?
E.g. to get MS Lync contacts which user have, or outlook contacts...
Does some better way for implementation of current feature exists?
Thanks
Have a look at https://msdn.microsoft.com/EN-US/library/office/jj190895(v=exchg.150).aspx. Contacts are just items in the user's mailbox. You might also download EWSEditor to poke around and see what's available.

Does the Event api expose what fbid's a user has invited to that event?

I'm interested in measuring how many other fb friends a facebook user invites to a given event. Ideally which specific users that user invited to the event as well as the number of users.
Related, I'm also interested in measuring how many/which facebook users a user invites to a facebook fan page.
The Graph API Event object contains an owner field, which identifies the User ID of the profile that created each event.
The /invited endpoint on that Event object contains a list of Users that were invited to that particular Event.
The Graph API User object has an /events endpoint which lets you see the list of events that a User is attending. Users are always attending events which they have created.
If you put these 3 things together, you will be able to do what you want :)

Resources