Starting from version 1078, the API prefix has been changed from hbs to qg. The original prefix hbs is still supported.
Parameter | Type | Mandatory | Description |
|---|---|---|---|
title | string | Yes | Event title. |
description | string | No | Event description. |
startDate | long | Yes | Start time of an event, represented in milliseconds since the Unix epoch (UTC). |
endDate | long | Yes | End time of an event, represented in milliseconds since the Unix epoch (UTC). |
timezone | string | No | Event time zone. |
allDay | boolean | No |
|
rrule | string | Yes | Rule format of a recurring event, for example, "FREQ=WEEKLY;COUNT=10;WKST=SU". For more examples, click here. |
remindMinutes | array | No | Number of minutes in advance to send an event reminder, for example, [5,15,30]. |
organizer | string | No | Email address of an event organizer (owner). |
success | function | No | Callback function triggered upon a successful API call. The return value is the ID (integer type) recorded when an insertion is successful. |
fail | function | No | Callback function triggered upon a failed API call. |
qg.insertCalendar({
title:"Event A,"
startDate:1490770543000,
endDate:1490880543000,
remindMinutes:[5,15,30],
rrule:"FREQ=WEEKLY;COUNT=2",
success:function(data){console.log("handling success");}
})