English
English
简体中文
Contact Us
Register
Log In

Get Registered Users

Last Updated on : 2022-09-21 07:11:31download

Get the data of registered users in the specified time range on the app. The returned result includes the number of registered users today, the total number of registered users, the date of registration, and the region or country of registration.

API address

GET: /v1.0/iot-datacenter/app/user/register/stat

Request parameter

Parameter nameTypeINRequiredDescription
paramsStringquerytrueJSON

Description of params

Parameter nameTypeINRequiredDescription
bizTypeString falseThe user domain.
startDayString trueThe start time.
endDayString trueThe end time.
countryString falseThe country or region.
dimensionString falseThe dimension.

Description of dimension

Parameter nameTypeINRequiredDescription
country_nameString falseThe country or region.

Return parameter

Parameter nameTypeDescription
resultJSONArrayThe returned data.

Description of result

Parameter nameTypeDescription
todayRegisterNumIntegerThe number of users registered today.
totalRegisterNumIntegerThe total number of registered users.
dtIntegerThe date.
countryNameStringThe country or region.

Request example

GET: /v1.0/iot-datacenter/app/user/register/stat?params={"startDay":"20210810" ,"endDay":"20210820","dimension":"country_name","country": "China"}

Return example

{
    "result": [
        {
            "totalRegisterNum": 601,
            "dt": 20210813,
            "countryName": "China",
            "todayRegisterNum": 0
        },
        {
            "totalRegisterNum": 601,
            "dt": 20210814,
            "countryName": "China",
            "todayRegisterNum": 0
        },
        {
            "totalRegisterNum": 601,
            "dt": 20210815,
            "countryName": "China",
            "todayRegisterNum": 0
        },
        {
            "totalRegisterNum": 611,
            "dt": 20210816,
            "countryName": "China",
            "todayRegisterNum": 10
        },
        {
            "totalRegisterNum": 616,
            "dt": 20210817,
            "countryName": "China",
            "todayRegisterNum": 5
        },
        {
            "totalRegisterNum": 616,
            "dt": 20210818,
            "countryName": "China",
            "todayRegisterNum": 0
        },
        {
            "totalRegisterNum": 621,
            "dt": 20210819,
            "countryName": "China",
            "todayRegisterNum": 5
        },
        {
            "totalRegisterNum": 621,
            "dt": 20210820,
            "countryName": "China",
            "todayRegisterNum": 0
        }
    ],
    "t": 1630117333494,
    "success": true
}

Error code

For more information, see error code.