Calendar API

Calendar API

core_calendar_create_calendar_events

Arguments
events (Required)
General structure

list of ( 
  //event
object {
name string   //event name
description string  Default to "null" //Description
format int  Default to "1" //description format (1 = HTML, 2 = PLAIN or 4 = MARKDOWN)
courseid int  Default to "0" //course id
groupid int  Default to "0" //group id
repeats int  Default to "0" //number of repeats
eventtype string  Default to "user" //Event type
timestart int  Default to "1587390712" //timestart
timeduration int  Default to "0" //time duration
visible int  Default to "1" //visible
sequence int  Default to "1" //sequence

)
REST (POST parameters)

events[0][name]= string
events[0][description]= string
events[0][format]= int
events[0][courseid]= int
events[0][groupid]= int
events[0][repeats]= int
events[0][eventtype]= string
events[0][timestart]= int
events[0][timeduration]= int
events[0][visible]= int
events[0][sequence]= int


core_calendar_delete_calendar_events

Arguments
events (Required)
General structure

list of ( 
  //List of events to delete
object {
eventid int   //Event ID
repeat int   //Delete comeplete series if repeated event
)
REST (POST parameters)

events[0][eventid]= int
events[0][repeat]= int


    • Related Articles

    • Calendar

      CALENDAR Your calendar will display any site, course, group, user and category events that are relevant to you as well as assignment and quiz deadlines. Additionally, you can add new calendar events, export your LMS events to sync with your personal ...
    • User API

      core_user_create_users Arguments users (Required) General structure list of (  object { createpassword int  Optional //True if password should be created and mailed to user. username string   //Username of profile. auth string  Default to "manual" ...
    • Where to find your Calendar

      CALENDAR Your calendar will display any site, course, group, user and category events that are relevant to you as well as assignment and quiz deadlines. Additionally, you can add new calendar events, export your LMS events to sync with your personal ...
    • Generate your API Key

      Step 1: Click on "Site admin" > "Integrations" > "Manage tokens": Step 2: Click on "Create Token": Step 3: (1) Select the user you wish to give the API Token to, (2) Select "API" then (3) Save: Step 4: Share this token with the user or save it if ...
    • Setting Up Your API

      We advise the use of a developer to help you setup your API connection. We will offer an example of how to CREATE NEW USER on your LMS (core_user_create_users) Let's review only the required REST (POST parameters): wsfunction=core_user_create_users ...