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

alibaba.visitor.getidsbyqrcode (根据访客二维码查访客行程id)

根据支付宝阿里访客小程序的动态二维码查询来访行程id

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
company_id Number 可选 1 公司id
campus_id Number 必须 66 园区id
date Date 必须 2020-12-12 12:12:12 来访时间
qr_code String 必须 xxxxxxxxx 二维码字符串

响应参数

名称 类型 示例值 描述
result PojoResult 出参
  • └ success
  • Boolean
  • 成功或失败
  • └ error_code
  • String
  • 错误码
  • └ contents
  • String []
  • 内容
  • └ error_msg
  • String
  • 错误信息
  • └ error_level
  • String
  • 错误级别

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaVisitorGetidsbyqrcodeRequest req = new AlibabaVisitorGetidsbyqrcodeRequest();
req.setCompanyId(1L);
req.setCampusId(66L);
req.setDate(StringUtils.parseDateTime("2020-12-12 12:12:12"));
req.setQrCode("xxxxxxxxx");
AlibabaVisitorGetidsbyqrcodeResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_visitor_getidsbyqrcode_response>
    <result>
        <success></success>
        <error_code></error_code>
        <contents>
            <string></string>
        </contents>
        <error_msg></error_msg>
        <error_level></error_level>
    </result>
</alibaba_visitor_getidsbyqrcode_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

返回
顶部