Get latest readings¶
Get real-time data of object domain points.
Request Format¶
METHOD {URI-scheme}://{apigw-address}/solar-api/{version}/domainService/getMdmidsPoints
Request Parameter¶
Name | Location | Required | Datatype | Description |
---|---|---|---|---|
token | Query | false | String | token, required when user account calls Solar API |
orgId | Query | false | String | orgnization Id, required when service account calls Solar API |
mdmids | Query | true | String | mdm ids with comma as splitter |
points | Query | true | String | domain points with comma as splitter |
Response Parameters¶
Name | Datatype | Description |
---|---|---|
timestamp | String | timestamp |
value | String | point values |
attributes | String | point attributes |
Error Codes¶
See Common response code.
Example¶
Request Example¶
GET
https://{apigw-address}/solar-api/v1.0/domainService/getMdmidsPoints?mdmids=Ln***G&token=APP_PORTAL_S_LVtNJAjPp5nQbZ92QJaDna9n9yaQ3KLD&points=SITE.a,SITE.b,SITE.c
Response Example¶
{
"result": {
"Ln1AUCsG": {
"points": {
"SITE.a": {
"value": "0",
"timestamp": 1572430440009,
"attributes": {}
},
"SITE.b": {
"value": "29",
"timestamp": 1572430740279,
"attributes": {}
},
"SITE.c": {
"value": "282720",
"timestamp": 1572430723662,
"attributes": {}
}
}
}
},
"status": 0,
"msg": "success",
"body": ""
}