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

alibaba.campus.guard.timeperiod.listtimerule (门禁控制器查询时间规则)

门禁控制器查询时间规则

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
time_period_query TimePeriodQuery 必须 时间规则查询条件参数
  • └ time_period_id_list
  • Number []
  • 必须
  • 2140
  • 时间规则ID
  • └ sn_no
  • String
  • 必须
  • 000-402002-01:00:90:90:08:09
  • 序列号

响应参数

名称 类型 示例值 描述
result PojoResult 结果
  • └ api_error_msg
  • String
  • success
  • 错误信息
  • └ api_success
  • Boolean
  • true
  • 是否成功
  • content
  • TimeRuleConfigDTO []
  • 内容
  • └ name
  • String
  • yhc测试
  • 规则名称
  • time_rule_list
  • TimeRuleConfigDTO []
  • 时间规则集合
  • └ week
  • String
  • 4,5
  • forbid_template_list
  • CalendarTemplateDTO []
  • 失效条件
  • └ name
  • String
  • 国庆节
  • 特殊日期名称
  • └ template_id
  • Number
  • 1006
  • 特殊日期ID
  • └ time
  • String
  • 01:00-12:00
  • 时间
  • allow_template_list
  • CalendarTemplateDTO []
  • 通行日期
  • └ name
  • String
  • 国庆节
  • 特殊日期名称
  • └ template_id
  • Number
  • 1006
  • 特殊日期ID
  • └ id
  • Number
  • 2140
  • 时间规则ID
  • └ api_error_code
  • String
  • 200
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusGuardTimeperiodListtimeruleRequest req = new AlibabaCampusGuardTimeperiodListtimeruleRequest();
AlibabaCampusGuardTimeperiodListtimeruleRequest.TimePeriodQuery obj1 = new AlibabaCampusGuardTimeperiodListtimeruleRequest.TimePeriodQuery();
obj1.setTimePeriodIdList(new Long[] { 2140 };
);
obj1.setSnNo("000-402002-01:00:90:90:08:09");
req.setTimePeriodQuery(obj1);
AlibabaCampusGuardTimeperiodListtimeruleResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_guard_timeperiod_listtimerule_response>
    <result>
        <api_error_msg>success</api_error_msg>
        <api_success>true</api_success>
        <content>
            <time_rule_config_d_t_o>
                <name>yhc测试</name>
                <time_rule_list>
                    <time_rule_config_d_t_o>
                        <week>4,5</week>
                        <forbid_template_list>
                            <calendar_template_d_t_o>
                                <name>国庆节</name>
                                <template_id>1006</template_id>
                            </calendar_template_d_t_o>
                        </forbid_template_list>
                        <time>01:00-12:00</time>
                        <allow_template_list>
                            <calendar_template_d_t_o>
                                <name>国庆节</name>
                                <template_id>1006</template_id>
                            </calendar_template_d_t_o>
                        </allow_template_list>
                    </time_rule_config_d_t_o>
                </time_rule_list>
                <id>2140</id>
            </time_rule_config_d_t_o>
        </content>
        <api_error_code>200</api_error_code>
    </result>
</alibaba_campus_guard_timeperiod_listtimerule_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

返回
顶部