Query Plant list

For example: http://api.shinemonitor.com/public/?sign=45a0317337cad1b975b7cc8e6ae35401daa5c356&salt=6799118618252297881&token=5b13e18eaa179d4bdce4cf2cc0e66eaa506c7f27ccac6b9e7beaa190ec0e386f&action=queryPlants&status=0&orderBy=ascPlantName&page=0&pagesize=10&source=0&_app_client_=android&_app_id_=com.demo.test&_app_version_=3.6.2.1

Parameter Description Required
action queryPlants True
status Plant status, If you do not pass this parameter, it means that you do not care about False
orderBy Sort rules, possible values include:
ascPlantName, In order of Plant name
descPlantName, In reverse order by Plant name
ascInstall, In order of installation time of the Plant
descInstall, In reverse order of installation time of the Plant
ascStatus, In order of Plant status
descStatus, In reverse order of Plant status
,If this parameter is not passed, it defaults to ascPlantName
False
plantName Plant name, fuzzy search False
page Paging processing, page number, starting from 0. If this parameter is not passed, it is defaulted to 0 False
pagesize Paging processing, with 1 to 50 records per page. If this parameter is not passed, it defaults to 1 False

response:

Parameter Description Required
total Total number of records True
page Paging processing, which page True
pagesize Paging processing, number of records per page True
plant[x] refer to Query Plant information True
{
    "err":0,
    "desc":"ERR_NONE",
    "dat":{
        "total":8,
        "page":0,
        "pagesize":1,
        "plant":[
            {
                "pid":1,
                "uid":1,
                "name":"PLANT",
                "status":1,
                "address":{
                    "country":"中国",
                    "province":"湖南省",
                    "city":"益阳市",
                    "county":"安化县",
                    "town":"梅城镇",
                    "village":"南街村",
                    "address":"南街村8组",
                    "lon":"111.651442",
                    "lat":"28.144826",
                    "timezone":28800
                },
                "profit":{
                    "unitProfit":"1.12",
                    "currency":"¥",
                    "currencyCountry":"CNY",
                    "coal":"0.221",
                    "co2":"0.031",
                    "so2":"0.023"
                },
                "nominalPower":"50000",
                "energyYearEstimate":"5000000",
                "designCompany":"EYBOND",
                "picBig":"http://img.shinemonitor.com/picBig.png",
                "picSmall":"http://img.shinemonitor.com/picSmall.png",
                "install":"2017-06-29 02:16:21",
                "gts":"2017-06-29 02:16:21"
            }
        ]
    }
}

Possible errors:

Response error code Description Details
0x0006 ERR_FORMAT_ERROR Parameter error
0x0104 ERR_NOT_FOUND_PLANT Unable to find Plant
0x0008 ERR_FORBIDDEN Reject (Plant owner or Dealer or Device manufacturer calls, other roles reject)
Copyright © eybond 2022 all right reserved,powered by Gitbook文档更新时间: 2023-07-18 10:23:17

results matching ""

    No results matching ""