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
externalUserIdstringRequired

External user id

Example: H01X1****0032
currentintegerOptional

Current page number, default and minimum value is 1

Example: 1
sizeintegerOptional

The amount pf data presented per page, default and minimum value is 10

Example: 10
Responses
200

Operation was successful

application/json
post
/v1/station/list
POST /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