Get plant list
post
OObtain station list created by user who had logged in HanchuESS.
Required scopes
This endpoint requires the following scopes:
- : all privileges
- : all privileges
Authorizations
OAuth2clientCredentialsRequired
Token URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Body
externalUserIdstringRequiredExample:
External user id
H01X1****0032currentintegerOptionalExample:
Current page number, default and minimum value is 1
1sizeintegerOptionalExample:
The amount pf data presented per page, default and minimum value is 10
10Responses
200
Operation was successful
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Device Does Not Exist
application/json
default
Internal error
application/json
post
/v1/station/listPOST /portal/v1/station/list HTTP/1.1
Host: idaas-sandbox.hanchuess.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"externalUserId": "H01X1****0032",
"current": 1,
"size": 10
}{
"errno": 200,
"msg": "The operation has been successful",
"data": {
"records": [
{
"stationId": "ST250****942E5",
"stationName": "Home2",
"timezone": "Europe/London"
}
],
"current": 1,
"size": 10,
"total": 1,
"pages": 1
}
}Last updated