Using Microsoft Graph Explorer I can read all of my calendars.
For that I use GET request:
https://graph.microsoft.com/v1.0/me/calendars
In these calendars, I cannot see the public folder calendar. Just to mention that I am the Owner of the Public folder calendar and have permission to create a new event.
I use the following POST request
https://graph.microsoft.com/v1.0/me/calendars/{calendar ID}/events
in order to get all events for some of my calendar IDs and send JSON request using auth token to create a new event in my calendar:
{
'Authorization': 'Bearer {}'.format(session['microsoft_token']),
'Host': 'graph.microsoft.com',
'Content-Type': 'application/json'
}
Also, I am sending JSON data with specific event data that needs to be created.
But I cannot access to public folder calendar until I know its calendar ID.
question from:
https://stackoverflow.com/questions/65905631/how-to-get-public-folder-calendar-id-in-order-to-create-event-using-microsoft-gr 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…