Not able to get room's event which is created by other users. in graph Api - outlook

It is really nice to have work with MS Graph API.
We are using this apis for our product.
Actually we need to get the All rooms of a User and assosiated events of the rooms.
We are able to fecth the rooms. but we are facing few issues with events.
Our requirnment for events is we have to fetch all the events w.r.t one room irrespective of who has created the events.
Currently we are getting the events which are created by me.
NOT GETTING EVNTS OF A ROOM CREATED BY OTHERS
FYI we are using auth flow with the below url
https://login.microsoftonline.com/tenatId/oauth2/v2.0/authorize?client_id=clientID&response_type=code&redirect_uri=redirectUrl&response_mode=query&scope=offline_access%20user.read%20mail.read%20places.read.all calendares.read&state=12345
and we are using below url to fetch the events
https://graph.microsoft.com/v1.0/me/calendarView/?select=id,subject,start,end,location,organizer,originalStartTimeZone&orderby=start/dateTime&filter =isCancelled eq false &top=100&endDateTime=endDateTime&startDateTime=startDateTime
Please let us know if there is any different api to fetch the rooms related all events with the token which we are getting with the above login flow.
We have checked all the documentaion but not getting expected data.

We can use the below API for the above requirement
https://graph.microsoft.com/v1.0/users/"room_email_id"/calendar/calendarView.
"room_email_id" should be replaced with the actual value
Thanking you

Related

How to be aware of the creation of a new event in a google calendar? [duplicate]

I am developing a SPA webapp through which I add events to my users google calendar They have given permission for. However this is my first time using Google calendar API, and was unclear about how to retrieve my users existing events , or if they add new events or delete them. IS there an option to set a webhook within google calendar thus when the user makes any changes to the calendar I can receive the change. My current approach was to make multiple get requests but that seems very inefficient. How can I keep my app calendar in sync with all user created events.
You can set up a push notification to be alerted any time anything changes on one of your calendars. I looked into it before a little, if memory serves it doesn't alert you to a lot of particularly useful information (I don't believe it tells you exactly what changed and how). Check out the docs here: https://developers.google.com/google-apps/calendar/v3/push
What I ended up doing was setting up a cronjob and getting all of my calendars' events using the synctoken, which returns only the events that have changed since the last time I polled the API for events. https://developers.google.com/google-apps/calendar/v3/sync
If you are using the SyncToken in your request for data, all you get back is the events that have changed. There is an eventID in the Google records that you can use to connect the change to your event data.

how to identifying updated child event in series(rucurring events) with help of calendar graph api?

I m syncing outlook calendar with my other system using graph apis.
Issue - If a single event gets modified in series of events in outlook, I am not able to identify that changed one only.
fields in response feed- like updateddatetime, changekey are not help in this scenario? Is there any specific way or api or suggestion?

Outlook Graph email API: Threaded Email Conversations

I have an application that I have to integrate with the outlook via Graph API. I need to retrieve the conversations which I am getting using the Graph Mail API. But the graph API is not able to return the object of the email in the form of threads(like that of a conversation thread between two email ids). Also, there is no field in the object that can specify to which thread a particular email belongs so that I can group them in my app.
Is there any way I can achieve the same.
Honestly, I think there is some severe lack of documentation on this everyday use case.
The solution it seems is to filter your messages by the conversationId.
See this answer: https://stackoverflow.com/a/63570384/2591194.

How to add a dynamic results section to Laravel

I made a laravel app which uses an index method that delivers a collection of the client's available appointments (think hairdresser) to the page (as an api), which I then display using vue/vuetify.
The client is saying they would like the appointments on the page to be dynamic/live eg if someone books an appointment, then all other logged in users will see that appointment disappear from the list on their screen.
I have no idea how I would do this, although I have had one idea - I somehow incorporate node/non-blocking on the server, like a chat room, but only for this part of the app.
Or is there a way to do this with laravel/nginx?
Thanks in advance - I don't know what to search for!
I believe you are looking for Broadcasting (Documentation Link). You would need to:
Configure your broadcasting driver (you could give pusher a try for quick setup and tinkering)
Configure your Laravel backend to dispatch a new event whenever a new appointment is made, (e.g. event(new AppointmentCreated($appointment)) where AppointmentCreated implements the ShouldBroadcast interface. You can combine this with Model Events
Update your frontend to receive your broadcast (Check Laravel Echo). Once you receive a broadcast, update the UI to mark this appointment as unavailable i.e, make it disappear

Google Calendar event Created/Updated/Deleted Webhook?

I am developing a SPA webapp through which I add events to my users google calendar They have given permission for. However this is my first time using Google calendar API, and was unclear about how to retrieve my users existing events , or if they add new events or delete them. IS there an option to set a webhook within google calendar thus when the user makes any changes to the calendar I can receive the change. My current approach was to make multiple get requests but that seems very inefficient. How can I keep my app calendar in sync with all user created events.
You can set up a push notification to be alerted any time anything changes on one of your calendars. I looked into it before a little, if memory serves it doesn't alert you to a lot of particularly useful information (I don't believe it tells you exactly what changed and how). Check out the docs here: https://developers.google.com/google-apps/calendar/v3/push
What I ended up doing was setting up a cronjob and getting all of my calendars' events using the synctoken, which returns only the events that have changed since the last time I polled the API for events. https://developers.google.com/google-apps/calendar/v3/sync
If you are using the SyncToken in your request for data, all you get back is the events that have changed. There is an eventID in the Google records that you can use to connect the change to your event data.

Resources