| 参数名 | 类型 | 是否可选 | 默认值 | 含义 | 
|---|---|---|---|---|
| query | Object | |||
| query.title | string | 可选 | 和老马开会 | 日程标题 | 
| query.startDate | string | 可选 | 2015-04-01 10:00:00 | 开始时间 | 
| query.endDate | string | 可选 | 2015-04-01 12:00:00 | 结束时间 | 
| query.location | string | 可选 | 5-2-10s | 地点 | 
| query.alarmOffset | number | 可选 | 15 | 事件开始前多少分钟提醒 | 
| query.recurrenceTimes | number | 可选 | 3 | 循环次数,3的含义是:例如每周一提醒,连续提醒3周 | 
| query.frequency | enum | 可选 | year/month/week/day | 提醒频率,只能选择以上枚举型,分别代表每年提醒一次,每月提醒一次,以此类推 | 
| query.notes | string | 可选 | http://www.taobao.com | url连接地址 | 
| query.silent | string | 可选 | true/false | 是否静默添加,默认false | 
| 参数名 | 类型 | 示例 | 含义 | 
|---|---|---|---|
| result | * | 请求响应 | |
| query.success | bool |  | 
|
 
 
 
 
| 静默添加成功返回true,否则返回false。非静默添加永远返回true
QN.app.invoke({
      api:'addCalendar',
      query:{
                title : '和老马开会'  ,
                    startDate : '2015-04-01 10:00:00'  ,
                    endDate : '2015-04-01 12:00:00'  ,
                    location : '5-2-10s'  ,
                    alarmOffset : 15  ,
                    recurrenceTimes : 3  ,
                    frequency : 'year/month/week/day'  ,
                    notes : 'http://www.taobao.com'  ,
                    silent : 'true/false'  
      }
}).then(result => {
    console.log(result);
}, error => {
    console.log(error);
});