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

alibaba.campus.guard.flyzoo.checkin (菲住布渴亲橙客栈checkin)

亲橙客栈用户checkin时,完成人脸注册、客栈区域人脸门禁通行授权

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
checkin FlyzooCheckinDTO 可选 checkin参数
  • └ identity_type
  • Number
  • 必须
  • 1
  • 证件类型 1:身份证 2:护照 3:通行证
  • └ identity
  • String
  • 必须
  • 320331198811094089
  • 证件号
  • └ pic_content
  • String
  • 必须
  • xxxxxxx
  • base64编码的人脸图片
  • └ name
  • String
  • 必须
  • 小明
  • 姓名
  • └ campus_id
  • Number
  • 必须
  • 1
  • 园区id

响应参数

名称 类型 示例值 描述
result BaseResult 返回包装类
  • └ success
  • Boolean
  • true
  • 是否执行成功
  • └ request_id
  • String
  • id
  • 请求id
  • └ error_code
  • String
  • FAILED
  • 错误码
  • └ error_ext_info
  • String
  • {}
  • 额外信息
  • content
  • CheckInResultDto
  • CheckInResultDto
  • └ passport_id
  • Number
  • 111246113
  • passportId
  • └ error_msg
  • String
  • failed
  • 错误信息
  • └ error_level
  • String
  • 1
  • 错误等级

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaCampusGuardFlyzooCheckinRequest req = new AlibabaCampusGuardFlyzooCheckinRequest();
AlibabaCampusGuardFlyzooCheckinRequest.FlyzooCheckinDTO obj1 = new AlibabaCampusGuardFlyzooCheckinRequest.FlyzooCheckinDTO();
obj1.setIdentityType(1L);
obj1.setIdentity("320331198811094089");
obj1.setPicContent("xxxxxxx");
obj1.setName("小明");
obj1.setCampusId(1L);
req.setCheckin(obj1);
AlibabaCampusGuardFlyzooCheckinResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_campus_guard_flyzoo_checkin_response>
    <result>
        <success>true</success>
        <request_id>id</request_id>
        <error_code>FAILED</error_code>
        <error_ext_info>{}</error_ext_info>
        <content>
            <passport_id>111246113</passport_id>
        </content>
        <error_msg>failed</error_msg>
        <error_level>1</error_level>
    </result>
</alibaba_campus_guard_flyzoo_checkin_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

返回
顶部