Why would a Calendar Id change when using the Outlook REST API? - outlook-restapi

We have an application built that uses both the V1 and V2 versions of the Outlook REST API. We occasionally witness the calendar id for a user's calendar change.
Specifically...
we fetch calendars using the GET https://outlook.office.com/api/v2.0/me/calendars API call. We store the Id property for each calendar.
Later (normally weeks or months later) if we make the same call using the same Oauth2 token, we get back a different Id for each calendar.
The same thing happens with the both the V1 and V2 versions of the above endpoint.
This doesn't happen all the time... it happens only for some calendars... and only for some calendars within one O365 account. We haven't been able to determine what triggers the change.
I know this is vague, but I'm wondering if anyone else has witnessed this, or might know what would cause the Id of a calendar to change.
Thanks!

Related

How updates in Azure AD Graph API or Microsoft Graph API are released

I am using Azure AD Graph API and Microsoft Graph API to communicate the Azure Active Directory . My code parses response received from API and compares error message in some specific error scenarios . Recently I observed one my scenario was failing due to change in response message from the API. I am just curios how these changes are pushed by Microsoft . Are customers notified for these changes ? Are changes released region wise or customer wise ? My code is being used by mates in other geographic reason also , they have not reported any failure till now.
For Example. Previously Error message for expired password was "Forced Password Change" now message is "Password is expired"
Are customers notified for changes ?
Once the service update is applied by Microsoft you will receive a notification if the update was successful or if it was not able to be applied. When any maintenance plan to happen all the partners and user receives notification about that. You could find here
Are changes released region wise or customer wise ?
Usually changes made on regionally. But sometimes data center wise also. But its very rare pointing to specific customer. Some small enhancement take place (Like yours) that's impact less on application and partner as well. In that case you may not receive any notification for that. Other then you would definitely receive mail concerning the issue. For more details you could take look on service life cycle policy

how to add a calendar to a conflicting meeting room

This question regard of Google API(Calendar Resource).
https://developers.google.com/admin-sdk/directory/v1/reference/resources/calendars/insert
When using the google calendar API, I did not know how to add a calendar to a conflicting meeting room that was reserved.
Normally calendars that are already in conflict at the time of adding will send an email to decline from the meeting room account. I want to register without declining.
Please tell me if anyone knows how to resolve with the resource API.
I want to execute the operation manually with the API at the following URL.
https://ithelp.brown.edu/kb/articles/control-how-your-resource-calendar-accepts-events
thanks.

How to recognize which calendar the event belongs in Microsoft graph api?

I am developing application that synchronize with microsoft calendar.
To get any changes on Microsoft calendar I use webHook service and every time receive new/deleted/updated events but I do not know which calendar the event belongs, even after I get full event from Microsoft and not only the ID.
There are many calendars for user!
How can I recognize id of calendar?
The event resource has a calendar relationship, so that you should be able to do:
GET /me/events/{event-id}/calendar

Connect Google calendar api and api.ai

So here is what i am trying to do :
I built a bot with api.ai for my business that is hosted on my webpage and my Facebook page right now. Bot works well.
I want to push it to the next step by allowing my customers to make querys on my calendar, ask to book a specific time, see if available, if not offer other time similar, then make a booking.
I have been reading this thread and the great answer attached to it but i think my case is a bit different.
I was wondering if the bot could always have a token so every guests won't have to Auth to query the calendar ?
Obviously i am new to this, i have been reading the guide of google calendar api and api.ai but i don't really see how to do that yet. I guess there is a way to store a token somewhere and then just trigger the query with some specific intents but not to sure how.
I have also done the node.js quickstart guide of the G-calendar api, and it works fine if that helps.
Thanks for your help !
You will probably want to use a Service Account that is permitted to the calendar in question. Service Accounts are similar to regular accounts, but they are expected to do server-to-server communication only, so the method to create an auth token is a little different to keep it secure.
See https://developers.google.com/identity/protocols/OAuth2ServiceAccount for more information about using Service Accounts.
In general, you'll be using a shared secret to create and sign a JSON Web Token (JWT) you send to Google's servers. You'll get back an access token which you'll then use to call the Calendar API. The access token expires in about an hour, at which point you'll need to repeat the process.
There are libraries available to do much of this for you. For example, if you're using the node.js library https://github.com/google/google-api-nodejs-client, then it will take care of this for you (although you need to modify the key file - see the documentation for details).

Google Calendar API - set guest can modify to true

I'm using the google calendar api for a calendar web app. My app allows users to create and modify calendar events and it syncs these changes with user's google calendars. I recently noticed that when one user creates an event and invites another user to that event, that invited user can only change the topic of the event for his/her calendar, not for all the other participants. I would like one user's changes to be reflected on the google calendar's of all the other participants. Google Calendar's website provides an option for allowing guests to modify the event:
but I wasn't able to find where I could specify this option in the google calendar api. How can I use the gcal api to set guestsCanModify to true when an event is created?
2021 update:
Just set the guestsCanModify to true in Event object
https://developers.google.com/calendar/api/v3/reference/events
That is probably some Google magic in the Google Calendar website. If you check the documentation for Events.insert There is nothing about granting attendees permissions on the event. It would appear that you can only add a user to a calendar but not limit their permissions in anyway with regard to events.
However I think that is a new feature which makes me think it might be something they will be adding to the API in the future. It would be nice if they did.

Resources