获取已同步的第三方项目关联关系

更新时间:2022-09-13 15:57:27

接口说明

使用接口前请联系相关人员获取third_code与secret信息 sign生成规则 当前接口绑定的项目关系只支持下面列表的设备使用 |设备|设备code| |-|-|-| |室内定位|indoor_location| 此接口可通过third_code+third_proj_id获取对应的third_proj_id注册信息

基本信息

请求方式: GET

请求路径:

https://prod.open-api.mysre.cn/aiot/norm-device/get-relevance-project

请求参数

参数名 参数位置 参数类型 必填 默认值 示例 描述
tenant_code query string
type_code query string 设备类型,具体支持设备请参考本接口默认返回信息
third_code query string myyl 第三方code
sign query string 7c7e9ee60dd8656b5ccf1ab4dd11fea489344cb71 签名信息sha1( tenantCode thirdCode secret timestamp)
third_proj_id query string 第三方项目id

请求示例

get /aiot/norm-device/get-relevance-project?type_code=&sign=&third_code&timestamp=&third_proj_id=&type_code=&tenant_code=

返回成功示例

{
    "errcode": 0,
    "data": {
        "proj_id": "111",
        "third_proj_id": "2222",
        "third_code": "huiyi",
        "map_id": "",
        "third_proj_name": "333333333",
        "third_proj_type": "",
        "third_proj_contract": "",
        "third_proj_addr": "333333333333",
        "third_proj_longitude": "0",
        "third_proj_latitude": "0",
        "created_on": "2022-09-13 14:19:47",
        "modified_on": "2022-09-13 14:19:47",
        "is_deleted": 0
    },
    "type_code": {
        "broadcast": "智能广播",
        "iot_nut": "智能螺母"
    },
    "errmsg": ""
}

返回参数说明(成功)

参数名 参数类型 描述
errcode number 异常code
errmsg string 异常信息
data object 数据
type_code object 设备类型
type_code.broadcast string 设备类型
data.proj_id string 明源项目id
data.third_proj_id string 第三方项目id
data.third_code string 第三方code
data.map_id string 地图id
data.third_proj_name string 第三方项目名称
data.third_proj_type string 第三方项目类型
data.third_proj_contract string 第三方项目contract
data.third_proj_addr string 第三方项目地址
data.third_proj_longitude string 第三方项目经纬度
data.third_proj_latitude string 第三方项目经纬度
data.created_on string 关系创建时间
data.modified_on string 关系更新时间
data.is_deleted number 关系是否被删除(如需要这个数据。但是数据标记我1可联系对应技术支持)
type_code.iot_nut string 关系是否被删除

失败返回示例

{
    "errcode": -1,
    "errmsg": "xxx 是必须的"
}

返回参数说明(失败)

参数名 参数类型 描述
errcode number 异常code
errmsg string 异常信息

results matching ""

    No results matching ""