Gets all calendars that a user has access to.
200: OK Successfully retrieved list of calendars 401: Unauthorized Invalid/missing API key 400: Bad Request Missing account id 404: Not Found Account Not Found. Invalid accountId
Copy {
"success": true,
"data": {
"calendars": [
{
"id": "some-calendar-id",
"name": "Calendar",
"color": "auto",
"hexColor": "",
"isDefaultCalendar": true,
"changeKey": "some-key",
"canShare": true,
"canViewPrivateItems": true,
"canEdit": true,
"allowedOnlineMeetingProviders": [
"skypeForConsumer"
],
"defaultOnlineMeetingProvider": "skypeForConsumer",
"isTallyingResponses": true,
"isRemovable": false,
"owner": {
"name": "Jane Doe",
"address": "outlook_some-id@outlook.com"
}
}
]
}
}
Copy {
"error": "Unauthorized. Invalid API key."
}
Copy {
"errors": [
{
"msg": "an account id is required.",
"param": "accountId",
"location": "query"
}
]
}
Copy {
"success": false,
"error": "Invalid account id. Account Not Found",
"code": 404
}
200: OK Successfully retrieved the calendar 404: Not Found Account Not Found. Invalid accountId 401: Unauthorized Invalid/missing API key 400: Bad Request Missing account id 404: Not Found Calendar Not Found
Copy {
"success": true,
"calendar": {
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('outlook_some-id@outlook.com')/calendars/$entity",
"id": "some-calendar-id",
"name": "Calendar",
"color": "auto",
"hexColor": "",
"isDefaultCalendar": true,
"changeKey": "some-key",
"canShare": true,
"canViewPrivateItems": true,
"canEdit": true,
"allowedOnlineMeetingProviders": [
"skypeForConsumer"
],
"defaultOnlineMeetingProvider": "skypeForConsumer",
"isTallyingResponses": true,
"isRemovable": false,
"owner": {
"name": "Jane Doe",
"address": "outlook_some-id@outlook.com"
}
}
}
Copy {
"success": false,
"error": "Invalid account id. Account Not Found",
"code": 404
}
Copy {
"error": "Unauthorized. Invalid API key."
}
Copy {
"errors": [
{
"msg": "an account id is required.",
"param": "accountId",
"location": "query"
},
{
"msg": "account id must be a string",
"param": "accountId",
"location": "query"
}
]
}
Copy {
"success": false,
"error": "Not Found",
"code": 404
}