Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

With the help of the External Calendar API Endpoint feature, users of CAE LearningSpace will be able to process events (including date, event name and room name)  using their software integration components and work with the event information in any way they desire, like:

  • forwarding them to external calendar applications,
  • or presenting it as a static webpage
The External Calendar API Endpoint toggle can be activated in the System Module, General tab.
Image Removed
  • .
Note

LearningSpace does not generate an external calendar application: the raw data can be used to generate entries to an external (3rd party) calendar. 

 

Note
titleIMPORTANT

This process is not a two-way flow of information: data modified or created in an external calendar cannot be returned/sent back to LearningSpace.

Table of Contents

This API endpoint can be queried and can provide data from the

CAE

LearningSpace calendar to display outside of the system on a public-facing calendar.

 
  • The calendar is hourly refreshed.
  • It refers to

    current events ('

    today'

    )

    s and

    upcoming events (

    future events

    of

    for the next 7 days.

    Warning

    IMPORTANT: The LearningSpace system must be public (accessible over the public internet) and firewall rules should allow related traffic in order this feature to function.

     

    If With the feature is enabled, the list of all approved events is displayed according to the below: , when starting a query, events that 

    • are approved
    • start within that calendar day (
    • starting
    • from 00:00 of the day of the query)
    • finishing at 23:59
    • finish on the
    • 7th
    • seventh day of the query

    Note

    CAE LearningSpace does not generate the external calendar.

    How to use the API
    • (at 23:59 by the latest), will be displayed.
    Note

    The public facing calendar API’s access should be limited by the customer's IT department to be only available for the automation which are integrated with it because it does not have authorization enforcement.

    How to use the API

    The External Calendar API Endpointcan be enabled by a toggle in the System Module, General tab.

    Image Added

    Request data in ICS format

    By copying the ICS file, it can be inserted into external calendars (Google, Outlook calendar).

    Image Added

    Image Added

    The ICS file can be refreshed with the help of the Refresh button.

    Image Added

    Note

    Since changes to the LearningSpace Calendar (eg.adding new events) can be made frequently, make sure to always use Refresh before proceeding to your external calendar, to get the latest content of your LS Calendar.
    The system automatically updates ICS link hourly. Image Added


    Code Block
    titleExample for the ics endpoint:
    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:Data::ICal 0.22
    BEGIN:VEVENT
    COLOR:turquoise
    DESCRIPTION:Weekly Assessment
    DTEND:20230626T101500
    DTSTAMP:20230622T060102Z
    DTSTART:20230626T090000
    LOCATION:Sim 1 (Sim Room)
    SUMMARY:ACLS Megacode Testing
    UID:2023-06-26T09:00:00_ACLS Megacode Testing_Sim 1 (Sim Room)
    USERS:
    END:VEVENT
    BEGIN:VEVENT
    COLOR:turquoise
    DESCRIPTION:Weekly Assessment
    DTEND:20230626T101500
    DTSTAMP:20230622T060102Z
    DTSTART:20230626T090000
    LOCATION:Sim 2 (Sim Room)
    SUMMARY:ACLS Megacode Testing
    UID:2023-06-26T09:00:00_ACLS Megacode Testing_Sim 2 (Sim Room)
    USERS:
    END:VEVENT
    BEGIN:VEVENT
    COLOR:turquoise
    DESCRIPTION:Weekly Assessment
    DTEND:20230626T101500
    DTSTAMP:20230622T060102Z
    DTSTART:20230626T090000
    LOCATION:Sim 3 (Sim Room)
    SUMMARY:ACLS Megacode Testing
    UID:2023-06-26T09:00:00_ACLS Megacode Testing_Sim 3 (Sim Room)
    USERS:
    END:VEVENT
    BEGIN:VEVENT
    COLOR:turquoise
    DESCRIPTION:Weekly Assessment
    DTEND:20230626T101500
    DTSTAMP:20230622T060102Z
    DTSTART:20230626T090000
    LOCATION:Sim 4 (Sim Room)
    SUMMARY:ACLS Megacode Testing
    UID:2023-06-26T09:00:00_ACLS Megacode Testing_Sim 4 (Sim Room)
    USERS:
    END:VEVENT
    BEGIN:VEVENT
    COLOR:turquoise
    DESCRIPTION:Weekly Assessment
    DTEND:20230626T101500
    DTSTAMP:20230622T060102Z
    DTSTART:20230626T090000
    LOCATION:Sim 5 (Sim Room)
    SUMMARY:ACLS Megacode Testing
    UID:2023-06-26T09:00:00_ACLS Megacode Testing_Sim 5 (Sim Room)
    USERS:
    END:VEVENT
    BEGIN:VEVENT
    COLOR:turquoise
    DESCRIPTION:Weekly Assessment
    DTEND:20230626T101500
    DTSTAMP:20230622T060102Z
    DTSTART:20230626T090000
    LOCATION:Sim 6 (Sim Room)
    SUMMARY:ACLS Megacode Testing
    UID:2023-06-26T09:00:00_ACLS Megacode Testing_Sim 6 (Sim Room)
    USERS:
    END:VEVENT
    END:VCALENDAR }


    Info

    For a step-by-step guide go to How to Utilize External Calendar API Endpoint.

    Request data in JSON format

    By copying the JSON file, it can be inserted into external calendars (Google, Outlook).

    Image Added

    Information for software developers of our customers:

      • use an HTTP GET request to retrieve the external facing calendar contents as a JSON document

      • the API endpoint is https://<your<your.learning.space.edu>edu>/w/api/v2/public-calendar.jsonjson 

      • the API definition is available as an OpenAPI specification at: https://<your<your.learning.space.edu>edu>/w/api/v2/openapi.yml

      • write code to parse the event list to present it or process it according to your requirements

    Code Block
    titleExample for the json endpoint:
    {
      "events": [
        {
          "isRecurringSeries": false,
          "isPartOfRecurringSeries": true,
          "activity": {
            "color": "neonCarrot",
            "title": "ACLS Testing "
          },
          "eventStart": "2022-06-13T07:00:00Z",
          "note": "Weekly Assessment",
          "rooms": [
            {
              "location": null,
              "name": "Sim 1 (Sim Room)"
            },
            {
              "location": null,
              "name": "Sim 2 (Sim Room)"
            },
            {
              "location": null,
              "name": "Sim 3 (Sim Room)"
            },
            {
              "location": null,
              "name": "Sim 4 (Sim Room)"
            },
            {
              "location": null,
              "name": "Sim 5 (Sim Room)"
            },
            {
              "location": null,
              "name": "Sim 6 (Sim Room)"
            }
          ],
          "durationMinutes": 180,
          "title": "ACLS Megacode Testing",
          "eventEnd": "2022-06-13T10:00:00Z"
        },
        {
          "isRecurringSeries": false,
          "isPartOfRecurringSeries": false,
          "activity": {
            "color": "neonCarrot",
            "title": "SON C/O 2019 Assessment"
          },
          "eventStart": "2022-06-09T07:00:00Z",
          "note": null,
          "rooms": [
            {
              "location": null,
              "name": "Exam 1 (Exam Room)"
            }
          ],
          "durationMinutes": 135,
          "title": ""Effective Assessment and Communication Skills Event"",
          "eventEnd": "2022-06-09T09:15:00Z"
        }
      ],
      "eventsTo": "2022-06-16T21:59:59Z",
      "generatedAt": "2022-06-09T05:57:10Z",
      "eventsFrom": "2022-06-08T22:00:00Z"
    }


    Info

    For a step-by-step guide go to How to Utilize External Calendar API Endpoint.


    Info

    See also External Calendar API Endpoint in System Manager - Feature Notes and How to utilize External Calendar API Endpoint.