文档中心 > API类目 > 天眼工作室API

alibaba.security.deepvision.proxy.device.authinfo.get (获取设备授权码)

获取设备授权码-弹外代理

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param DeviceAuthInfoParam 可选 参数
  • └ device_product_sku
  • String
  • 必须
  • 1
  • sku
  • └ app_name
  • String
  • 必须
  • 1
  • appCode
  • └ request_id
  • String
  • 可选
  • 1
  • 请求ID
  • └ tenant_code
  • String
  • 可选
  • 1
  • 租户编码
  • └ mac
  • String
  • 必须
  • 1
  • Mac
  • └ token
  • String
  • 可选
  • 1
  • Token

响应参数

名称 类型 示例值 描述
result DeviceAuthInfo 返回数据
  • └ tenant_code
  • String
  • 1
  • 租户编码
  • └ tenant_name
  • String
  • 1
  • 租户名称
  • └ field_id
  • String
  • 1
  • 门店编码
  • └ field_name
  • String
  • 1
  • 门店名称
  • └ activation_code
  • String
  • 1
  • 激活码
  • └ mac_list
  • String []
  • 1
  • 命中的Mac
resp_code Number 1 返回码
resp_success Boolean true 是否成功
resp_request_id String 1 请求唯一ID
message String 成功 返回描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxyDeviceAuthinfoGetRequest req = new AlibabaSecurityDeepvisionProxyDeviceAuthinfoGetRequest();
AlibabaSecurityDeepvisionProxyDeviceAuthinfoGetRequest.DeviceAuthInfoParam obj1 = new AlibabaSecurityDeepvisionProxyDeviceAuthinfoGetRequest.DeviceAuthInfoParam();
obj1.setDeviceProductSku("1");
obj1.setAppName("1");
obj1.setRequestId("1");
obj1.setTenantCode("1");
obj1.setMac("1");
obj1.setToken("1");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxyDeviceAuthinfoGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_device_authinfo_get_response>
    <result>
        <tenant_code>1</tenant_code>
        <tenant_name>1</tenant_name>
        <field_id>1</field_id>
        <field_name>1</field_name>
        <activation_code>1</activation_code>
        <mac_list>
            <string>1</string>
        </mac_list>
    </result>
    <resp_code>1</resp_code>
    <resp_success>true</resp_success>
    <resp_request_id>1</resp_request_id>
    <message>成功</message>
</alibaba_security_deepvision_proxy_device_authinfo_get_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

返回
顶部