Electa Live Virtual Classroom, LMS - Help & Support Portal

API 3.0 - Scheduling Live Sessions

API 3.0

This topic describes how to create live events in your Electa calendar using an API call. Please note you may not need to create live events if you are using the Direct Classroom Access Api and if you have your own scheduling system.


Call: <API_URL>/Event/Create
Supported HTML Methods: HTTP-GET / HTTP-POST
Communications Level: Server-to-Server
Result: XML


CID - Integer, Required, Account Id, Sample: 12345

Token - String, Required, Sample: 9C467079-FE3B-45C5-8AA5-9726397081AA
A valid session token obtain from a previous call to the Authentication namespace for the above Account Id.

StartDateTime -  String, Required, mm/dd/yyyy hh:mm:ss, Sample: 12/18/2018 23:45:00
The beginning date and time of the live session. 

- Integer, Options, Sample: 101
The time zone identifier in which the above date/time is specified. You can get all time zone identifiers from the Time Zone API.
If not provided the company default time zone will be used. This is configured on the Account Settings > Look & Feel page.

RoomId - Integer, Optional, Sample: 1234, The room ID number that will hold the event.

PresenterId - Integer, Optional, Sample: 22329843
The number id of the user set as an event organizer. Could be any of your teachers.
If not specified the account master admin will be used.

EventType - Character, Required, Values: A, B. Sample: A.
Specifies the type of event. Please refer to the Event Access Types guide for more details.
Through the API only events of type A and B can be created.

Duration - Integer, Required. The event duration in minutes. The following values are supported:
{ 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 90, 120, 180, 240, 300, 360, 420, 480, 540, 600, 660, 720, 1440 }

Topic - String, Required. The topic/title of the event to show in the calendar.

ShowInPublicCalendar - Boolean, Required. If True the event is listed in all published calendars.
If False the event is only listed in the calendars of the logged users.

If the call succeeds an XML result is returned with the newly created event details. If the call fails the result is the error code.

Sample Call 10:00&timezoneid=95&Duration=30&topic=Sample%20Topic&ShowinPublicCalendar=false

Sample Result

<?xml version='1.0' encoding='UTF-8'?>
    <StartDateTime>6/21/2018 10:00</StartDateTime>
    <Topic>10 hour session</Topic>

The XML result contains as pass back parameters your company id, presenter id, room id, start date and time as well as the time zone. Also the internal event ID and access code are provided. The Event URL can be published to allow users to attend from your website.


Also In This Category

Optionally provide private feedback to help us improve this article...

Thank you for your feedback!

Last Modified: 6 Years Ago
Last Modified By: Administrator
Type: INFO
Rated 2 stars based on 3 votes.
Article has been viewed 5.2K times.