🗓️Calendars

Google Calendars

Get All Calendars

Return list of calendars for a user

GET https://api.pyas.io/microsoft/calendars

Gets all calendars that a user has access to.

Query Parameters

NameTypeDescription

accountId*

String

The user's Pyas account id. This is returned when you connect an account to Pyas.

Headers

NameTypeDescription

x-api-key*

String

API key

{
    "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"
                }
            }
        ]
    }
}

Get a Calendar by ID

Get a single calendar

GET https://api.pyas.io/microsoft/calendars/:id

Gets a calendar by id

Path Parameters

NameTypeDescription

{id}*

String

The id of the calendar to retrieve

Query Parameters

NameTypeDescription

accountId*

String

The user's Pyas account id. This is returned when you connect an account to Pyas

Headers

NameTypeDescription

x-api-key*

String

API key

{
    "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"
        }
    }
}

Last updated