1. 公司标签

查询公司的标签信息

GET:http://api.xdua.com/hannm/{com_name}

字段名 字段位置 字段类型 字段说明 举例 必选
apiv head string API版本,默认是1.0.0 1.0.0 可选
Authorization head string 客户端保存的鉴权token Authorization字符串 必选
com_name path string 查询的公司名称 必选

返回数据

{
    "error": 0,
    "reason": "success",
    "result": {
         "tags": ["英国", "企业", "办事处", "东莞", "钟氏", "有限公司", "仪器仪表", "温度仪表", "东莞市", "广东省", "进出口贸易", "中国机械企业", "驻"],
         "com_name": "英国钟氏企业进出口贸易有限公司驻东莞办事处"
    }
}

成功返回

字段名 字段类型 字段说明
tags list 公司标签
com_name string 公司名称

失败返回

{
    "error": 1,
    "reason": "失败原因",
    "result": {"失败的参考数据"},
}

1.1. 错误码

错误码来自于error字段

错误码 错误码名 说明 可能原因
2000 服务成功完成 成功 服务成功完成。
2012 获取信息失败 成功 在查询公司标签时,公司标签不存在

1.2. Browser SDK调用示例代码

    const ham = await hannm({
        APP_KEY: "aHEVYhE1",
        APP_SECRET: "f34b127abc7cca1862dac91db6256190",
    })
    let api_name = "企业标签";
    let res = await ham.getComtags("英国钟氏企业进出口贸易有限公司驻东莞办事处")
    console.log(res);
    if(res.error == 0){
        console.log(api_name+"成功 ");
    }else{
        console.log(api_name+"失败 "+res.reason);
    }
    console.log(JSON.stringify(res));

results matching ""

    No results matching ""