2.5闹钟记录查询

#### 接口路径:https://dev.lingju.ai/httpapi/future_clock.do <table style="width:100%"> <tbody> <tr height="28" style="font-weight:bold;"> <td height="28" width="130px" >名称</td> <td colspan="3" >闹钟记录查询接口</td> </tr> <tr height="28" style="font-weight:bold;"> <td height="28" >接口路径</td> <td colspan="3" >https://dev.lingju.ai/httpapi/future_clock.do</td> </tr> <tr height="28" style="font-weight:bold;"> <td height="28" >请求方式</td> <td colspan="3" >get/post</td> </tr> </tbody> </table> #### http get请求示例: ~~~ https://dev.lingju.ai/httpapi/future_clock.do?accesstoken=xxxxxxxxxx ~~~ #### 请求参数说明: <table style="width:100%"> <thead> <tr height="28"> <th width="130px">参数</th> <th width="100px">数据类型</th> <th width="130px">可需</th> <th>描述</th> </tr> </thead> <tbody> <tr height="23" style="height:17.25pt"> <td height="23" >accesstoken</td> <td >String</td> <td>必填</td> <td >授权接口获取的accessToken</td> </tr> </tbody> </table> #### 接口返回JSON示例: ~~~ { "content":[ { "sid":"59448c21b2765b5e72a42638", "recyle":0,"created":1497664545383, "remindTime":1497657645368, "frequency":8, "valid":1, "item":"闹钟", "scheduler":[ { "when":1497657645368, "interval":1, "unit":"D" } ], "timestamp":1497664545383 } ], "status":0 } ~~~ #### 接口返回说明: ~~~ Content-Type:application/json;charset=UTF-8 ~~~ <table style="width:100%"> <thead> <tr height="28" > <th height="28" width="130px">属性名</th> <th width="100px">数据类型</th> <th colspan="4">描述</th> </tr> </thead> <tbody> <tr height="23"> <td height="23" >status</td> <td>int</td> <td colspan="4">状态码,0=成功,其它值则为错误码,请参考错误码表</td> </tr> <tr height="23"> <td height="23" >description</td> <td >String</td> <td colspan="4">通常不存在,出错时会返回错误信息</td> </tr> <tr > <td rowspan="10" >content</td> <td rowspan="10" >JSON数组</td> <td width="50px">item</td> <td colspan="3">闹钟类型:闹钟、工作日、周末;string</td> </tr> <tr > <td width="50px">sid</td> <td colspan="3">提醒记录的服务端ID,16进制字符</td> </tr> <tr > <td width="50px">timestamp</td> <td colspan="3">创建时间,long</td> </tr> <tr > <td width="50px">recyle</td> <td colspan="3">是否已被回收,1=已删除,0=可用</td> </tr> <tr > <td width="50px">remindTime</td> <td colspan="3">已废弃,提醒时间</td> </tr> <tr > <td width="50px">frequency</td> <td colspan="3">已废弃,频率</td> </tr> <tr > <td width="50px">valid</td> <td colspan="3">开关,是否有效,1=开</td> </tr> <tr > <td rowspan="3">scheduler</td> <td rowspan="3">JSON数组,定时方案集合,</td> <td>when</td> <td>触发时间,long</td> </tr> <tr > <td>interval</td> <td>间隔时间</td> </tr> <tr > <td>unit</td> <td>时间时间的单位:MS:毫秒,S:秒,MI:分钟,H:小时,D:日,M:月,Y:年</td> </tr> </tbody> </table>