获取累计激活设备数

更新时间:2023-07-28 06:25:26下载pdf

本文介绍获取累计激活设备数的 API。

接口描述

获取截止日期内,App 累计激活设备的数量。

接口地址

GET: /v1.0/iot-datacenter/app/device/activation/total

请求参数

参数名类型参数位置是否必填说明
paramsStringquerytrueJSON

params 说明

参数名类型参数位置是否必填说明
endDayString true截止时间
bizTypeString false用户域
countryString false国家
dimensionString false维度

dimension 说明

参数名类型参数位置是否必填说明
category_code_1String false一级品类
category_code_2Integer false二级品类
product_idInteger false产品

返回参数

参数名类型说明
resultJSONArray返回结果

result 说明

参数名类型说明
activationTotalNumInteger累计激活设备数
categoryCode1String一级品类
categoryCode2String二级品类

请求示例

GET: /v1.0/iot-datacenter/app/device/activation/total?params={"startDay":"20210810" ,"endDay":"20210820","dimension":"category_code_1"}

返回示例

{
    "result": [
        {
            "categoryCode1": "all",
            "dt": 20210820,
            "activationTotalNum": 1840
        },
        {
            "categoryCode1": "sxj",
            "dt": 20210820,
            "categoryName1": "安防监控",
            "activationTotalNum": 85
        },
        {
            "categoryCode1": "xjd",
            "dt": 20210820,
            "categoryName1": "小家电",
            "activationTotalNum": 225
        },
        {
            "categoryCode1": "dgzm",
            "dt": 20210820,
            "categoryName1": "电工",
            "activationTotalNum": 131
        },
        {
            "categoryCode1": "hjjk",
            "dt": 20210820,
            "categoryName1": "运动健康",
            "activationTotalNum": 3
        },
        {
            "categoryCode1": "cfdq",
            "dt": 20210820,
            "categoryName1": "厨房电器",
            "activationTotalNum": 8
        },
        {
            "categoryCode1": "qt",
            "dt": 20210820,
            "categoryName1": "其他",
            "activationTotalNum": 58
        },
        {
            "categoryCode1": "djd",
            "dt": 20210820,
            "categoryName1": "大家电",
            "activationTotalNum": 106
        },
        {
            "categoryCode1": "zm",
            "dt": 20210820,
            "categoryName1": "照明",
            "activationTotalNum": 304
        }
    ],
    "t": 1630121907084,
    "success": true
}

错误码

参考 错误码