文档中心 > API类目 > 智慧园区API

alibaba.campus.guard.timeperiod.listdatetemplate (门禁控制器查询日期模版)

门禁控制器查询日期模版

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
calender_template_query CalenderTemplateQuery 可选 参数
  • └ template_id_list
  • Number []
  • 可选
  • 1
  • 日历模版id集合
  • └ sn_no
  • String
  • 必须
  • 000-402002-01:00:90:90:08:09
  • 序列号

响应参数

名称 类型 示例值 描述
result PojoResult 结果
  • └ api_error_msg
  • String
  • success
  • 错误信息
  • └ api_success
  • Boolean
  • true
  • 是否成功
  • └ api_error_code
  • String
  • 200
  • 错误码
  • content
  • CalendarTemplateDTO []
  • 结果内容
  • └ name
  • String
  • 工作日
  • 日期名称
  • └ date_list
  • Date []
  • 时期集合
  • └ template_id
  • Number
  • 1
  • 日期ID

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusGuardTimeperiodListdatetemplateRequest req = new AlibabaCampusGuardTimeperiodListdatetemplateRequest();
AlibabaCampusGuardTimeperiodListdatetemplateRequest.CalenderTemplateQuery obj1 = new AlibabaCampusGuardTimeperiodListdatetemplateRequest.CalenderTemplateQuery();
obj1.setTemplateIdList(new Long[] { 1 };
);
obj1.setSnNo("000-402002-01:00:90:90:08:09");
req.setCalenderTemplateQuery(obj1);
AlibabaCampusGuardTimeperiodListdatetemplateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_guard_timeperiod_listdatetemplate_response>
    <result>
        <api_error_msg>success</api_error_msg>
        <api_success>true</api_success>
        <api_error_code>200</api_error_code>
        <content>
            <calendar_template_d_t_o>
                <name>工作日</name>
                <template_id>1</template_id>
            </calendar_template_d_t_o>
        </content>
    </result>
</alibaba_campus_guard_timeperiod_listdatetemplate_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部